Find the output of the following PHP 7.1 code.
$a = $b = &$a;
$b = "I met $b";
echo $b;
echo $a;
?>
I met Lisa
I met $bl met Lisa
I met Lisal met Lisa
I met Lisa I met Lisa.
I met $b
Correct Answer:
Explanation:
Note: This Question is unanswered, help us to find answer for this one
PHP 5 Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More PHP 5 MCQ Questions
Find the output. namespace A\B\C; const E_ERROR = 32; function strlen($s) { return \strlen($s) - 5; } echo E_ERROR, '\n'; echo INI_ALL, '\n'; echo strlen( if (is_array('abc')) { echo 'is an example.\n'; } else { echo 'is a test.\n'; } ?>
the string session_create_id ([ string $prefix ]) function is used for creating a new session id. Which of the following characters are allowed by the parameter prefix?
Output of the following code? $example = array(2, 4, 6, 8, 10); foreach ($example as $x => $value){ unset($example[$x]); } print_r($example); $example[] = 12; print_r($example); $example = array_values($example); $example[] = 14; print_r($example); ?>
interface ExampleInterface { } class ExampleClass implements Exampleinterface { } $x = new ExampleClass; $y = new ExampleClass; $z = $p = 'NotExampleClass'; var_dump($x instanceof $y); var_dump($x instanceof $z); var_dump($x instanceof $p); ?>
Output of the following code? class Bar { public function checking() { return function() { var_dump($this); }; } } $object = new Bar; $function = $object->checking(); $function(); ?>
Which functions set options in curl script?
How to check if a directory exists?
____ will walk through the entire array regardless of pointer position.
Difference between idate and date function?
How do you get header information from a URL?