Identity two ways to configure a PHP application to use the UTF8 character set.

Identity two ways to configure a PHP application to use the UTF8 character set.

Identity two ways to configure a PHP application to use the UTF8 character set.

A.
mysqli: :query (‘’SET NAMES utfs’’);

B.
mysqli : :set_charset (‘utf8’)

C.
spdo = new PDO (‘’mysql:host=localhost;dbname=test;charset=utfs’’, user’’, ‘’pass’’);

D.
PDO: :set_charset(‘’utf8’’)

Explanation:
Reference:
http://stackoverflow.com/questions/5842980/a-permanent-way-of-doing-mysqli-set-charset



Leave a Reply 5

Your email address will not be published. Required fields are marked *


leo

leo

The second way is C

armir01

armir01

BC confirmed