nerdexam
Zend

200-530 · Question #458

You run the following PHP script: <?php class Test { function __call( $var1, $var2 ) { $check = " '$var1' called<br />\n"; $check = print_r( $var2, true ); return $check; } } $item = new Test()…

Sign in or unlock 200-530 to reveal the answer and full explanation for question #458. The question stem and answer options stay visible for context.

Question

You run the following PHP script: <?php class Test { function __call( $var1, $var2 ) { $check = " '$var1' called<br />\n"; $check = print_r( $var2, true ); return $check; } } $item = new Test(); print $item->array( "John", "Maria", "Jason" ); ?> What is the work of the __call() method in the above script?

Options

  • ATo catch undefined methods
  • BTo catch undefined variables
  • CTo define undefined objects
  • DTo catch undefined objects

Unlock 200-530 to see the answer

You've previewed enough free 200-530 questions. Unlock 200-530 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 200-530 Practice