Oracle
1Z0-882 · Question #26
Identity two ways to configure a PHP application to use the UTF8 character set.
The correct answer is B. mysqli : :set_charset (`utf8') C. spdo = new PDO (`'mysql:host=localhost;dbname=test;charset=utfs'', user'', `'pass''). See the full explanation below for the reasoning.
Question
Identity two ways to configure a PHP application to use the UTF8 character set.
Options
- Amysqli: :query (`'SET NAMES utfs'');
- Bmysqli : :set_charset (`utf8')
- Cspdo = new PDO (
'mysql:host=localhost;dbname=test;charset=utfs'', user'','pass''); - DPDO: :set_charset(`'utf8'')
How the community answered
(44 responses)- A11% (5)
- B82% (36)
- D7% (3)
Community Discussion
No community discussion yet for this question.