which sample will NOT alter the date to the value ‘2014-02-15’?
Given the following DateTime object, which sample will NOT alter the date to the value
‘2014-02-15’? $date = new DateTime(‘2014-03-15’);
Which interfaces could class C implement in order to allow each statement in the following code to work?
Which interfaces could class C implement in order to allow each statement in the following
code to work? (Choose 2) $obj = new C(); foreach ($obj as $x => $y) { echo $x, $y; }
What is the output of the following code?
What is the output of the following code? class Foo Implements ArrayAccess { function
offsetExists($k) { return true;} function offsetGet($k) {return ‘a’;} function offsetSet($k, $v) {}
function offsetUnset($k) {} } $x = new Foo(); echo array_key_exists(‘foo’, $x)?’true’:’false’;
What is the output of the following code?
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’;
What is the output of the following code? $a = array(‘a’, ‘b’=>’c’); ec
What is the output of the following code? $a = array(‘a’, ‘b’=>’c’); echo
property_exists((object) $a, ‘a’)?’true’:’false’; echo ‘-‘; echo property_exists((object) $a,
‘b’)?’true’:’false’;
what is the value of $count?
Assuming UTF-8 encoding, what is the value of $count? $data = ‘$1Ä2’; $count =
strlen($data);
What is the output of this code?
What is the output of this code? $world = ‘world’; echo <<<‘TEXT’ hello $world TEXT;
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
‘✂✔✝’;
What will the following code print out?
What will the following code print out? $str = ‘✔ one of the following’; echo
str_replace(‘✔’, ‘Check’, $str);
What is the pattern modifier for handling UTF-8 encoded preg_* functionality?
What is the pattern modifier for handling UTF-8 encoded preg_* functionality?