Zend 200-500 - Zend PHP 5 Certification Exam

Page:    1 / 44   
Total 219 questions

You work for a shared hosting provider, and your supervisor asks you to disable user scripts to dynamically load PHP extensions using the dl() function. How can you do this?
(Choose 2)

  • A. Set enable_dl to Off in the server's php.ini configuration file.
  • B. Add dl to the current value of disable_functions in the server's php.ini configuration file.
  • C. Add dl to the current value of disable_classes in the server's php.ini configuration file.
  • D. Write a custom function called dl(), save it under the name prepend.inc and then set the auto_prepend_file directive to prepend.inc in php.ini.


Answer : A,B

Which of the following statements is NOT true?
a) Class constants are public
b) Class constants are being inherited
c) Class constants can omit initialization (default to NULL)
d) Class constants can be initialized by consts

  • A. a)
  • B. b)
  • C. c)
  • D. d)


Answer : C

Type hinting in PHP allows the identification of the following variable types: (Choose 2)

  • A. String
  • B. Integer
  • C. Array
  • D. Any class or interface type


Answer : C,D

How many elements does the $matches array contain after the following function call is performed? preg_match('/^(\d{1,2}([a-z]+))(?:\s*)\S+ (?=200[0-9])/', '21st March
2006', $matches);

  • A. 1
  • B. 2
  • C. 3
  • D. 4


Answer : C

Given the following code, what will be the value of $a?
$a = array('a', 'b');
array_push($a, array(1, 2));

  • A. array('a', 'b', 1, 2)
  • B. array(1, 2, 'a', 'b')
  • C. array(array(1, 2), 'a', 'b')
  • D. None of the above


Answer : D

Page:    1 / 44   
Total 219 questions