PHP Certification - Zend Certified Engineer Exam 2

Zend PHP Certification

Here’s another another question for those who are reviewing for a Zend Certified Engineer Exam.

<?

function myfunction($a, $b = true)
{
if($a && !$b) {
echo “Hello, World!\n”;
}
}

$s = array(0 => “my”,
1 => “call”,
2 => ‘$function’,
3 => ‘ ‘,
4 => “function”,
5 => ‘$a’,
6 => ‘$b’,
7 => ‘a’,
8 => ‘b’,
9 => ”);

$a = true;
$b = false;

/* Group A */
$name = $s[?].$s[?].$s[?].$s[?].$s[?].$s[?];

/* Group B */
$name(${$s[?]}, ${$s[?]});

?>

Each ? in the above script represents an integer index against the $s array. In order to
display the Hello, World! string when executed.


what must the missing integer indexes be?

Post it here.

Related Articles:

PHP Certification - Zend Certified Engineer Exam

Permalink • Print • Comment

Trackback uri

http://seoroot.com/blog/computing/programming/php-certification-zend-certified-engineer-exam-2.html/trackback

Related Entries

Leave a Comment