what will the following code print in the browser?

Given a php.ini setting of default_charset = utf-8 what will the following code print in the browser? header('Content-Type: text/html; charset=iso-8859-1'); echo '✂✔✝';A . Three Unicode characters, or unreadable text, depending on the browserB . ✂✔✝C . A blank line due to charset mismatchView AnswerAnswer: A

September 23, 2018 No Comments READ MORE +

What is the output of the following code?

What is the output of the following code? echo "1" + 2 * "0x02";A . 1B . 3C . 5D . 20E . 7View AnswerAnswer: C

September 17, 2018 1 Comment READ MORE +

Which of the following are valid identifiers? (Choose 3)

Which of the following are valid identifiers? (Choose 3)A . function 4You () {}B . function_ 4You () {}C . function object () {}D . $1 = "Hello"; E: $ 1 = "Hello World";View AnswerAnswer: B, C, E

September 16, 2018 1 Comment READ MORE +

What DOMElement method should be used to check for availability of a non-namespaced attribute?

What DOMElement method should be used to check for availability of a non-namespaced attribute?A . getAttributeNS()B . getAttribute()C . hasAttribute()D . hasAttributeNS()View AnswerAnswer: C

September 15, 2018 No Comments READ MORE +

What is the name of the key in $_FILES['name'] that contains the number of bytes of the uploaded file?

What is the name of the key in $_FILES['name'] that contains the number of bytes of the uploaded file?View AnswerAnswer: size

September 15, 2018 No Comments READ MORE +

echo array_key_exists('a', $x)?

What is the output of the following code? class Bar { private $a= 'b'; public $c = 'd'; } $x = (array) new Bar(); echo array_key_exists('a', $x)? 'true' : 'false'; echo'-'; echo array_key_exists('c', $x) ? 'true' : 'false';A . false-falseB . false-trueC . true-falseD . true-trueView AnswerAnswer: B

September 13, 2018 No Comments READ MORE +

What purpose do namespaces fulfill?

What purpose do namespaces fulfill?A . EncapsulationB . Alternative to classesC . Improved performanceD . All of the aboveView AnswerAnswer: A

September 4, 2018 No Comments READ MORE +

How many times will the function counter() be executed in the following code?

How many times will the function counter() be executed in the following code? function counter($start, &$stop) { if ($stop> $start) { return; } counter($start--, ++$stop); $start= 5; $stop= 2; counter($start, $stop);A . 3B . 4C . 5D . 6View AnswerAnswer: C

September 1, 2018 No Comments READ MORE +

When a browser requests an image identified by an img tag, it never sends a Cookie header.

When a browser requests an image identified by an img tag, it never sends a Cookie header.A . TRUEB . FALSEView AnswerAnswer: B

August 31, 2018 No Comments READ MORE +

What would you do?

You'd like to use the class MyDBConnection that's defined in the MyGreatFrameworkMyGreatDatabaseAbstractionlayer namespace, but you want to minimize *as much as possible* the length of the class name you have to type. What would you do?A . Import the MyGreatFramework namespaceB . Import the MyGreatFrameworkMyGreatDatabaseAbstractionlayer namespaceC . Alias MyGreatFrameworkMyGreatDatabaseAbstractionlayerMyDBConnection to...

August 30, 2018 No Comments READ MORE +