Zend 200-530 - Zend PHP 5.3 Certification
What is the output of the following script?
1
2 class a
3 {
4 public $val = 10;
5 }
6
7 function renderVal (a $a)
8 {
9 return $a->$val;
10 }
11
12 renderVal (new a);
13 ?>
What is the name of the PHP function used to automatically load non-yet defined classes?
Which of the following function signatures is correct if you want to have classes automatically loaded?
What can NOT be used to send a cookie from within a PHP application?
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)
Where does the session extension store the session data by default?
An HTML form contains this form element
When this form is submitted, the following PHP code gets executed:
move_uploaded_file(
$_FILES['myFile']['tmp_name'],
'uploads/' . $_FILES['myFile']['name']);
Which of the following actions must be taken before this code may go into production?
(Choose 2)
You want to extract the pieces of a date string, which looks like this:
"2005-11-02". Which of the following pieces of code will properly assign $year,
$month and $day with their respective values?
Which elements does the array returned by the function pathinfo() contain?
What will the following function call print?
printf('%010.6f', 22);