What SimpleXML function is used to parse a file?
What SimpleXML function is used to parse a file?
What function is ideal for outputting contents of a static file to screen?
What function is ideal for outputting contents of a static file to screen?
What is the output of the following script?
What is the output of the following script?
<code>
1 <?php
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 ?>
</code>
Which of the following function signatures is correct if you want to have classes automatically loaded?
Which of the following function signatures is correct if you want to have classes automatically
loaded?
What is the ideal method of copying data between two opened files?
What is the ideal method of copying data between two opened files?
What is the name of the method that can be used to provide read access to virtual properties in a class?
What is the name of the method that can be used to provide read access to virtual properties in a
class?
What is the return value of the following code: substr_compare("foobar", "bar", 3);
What is the return value of the following code: substr_compare(“foobar”, “bar”, 3);
What is the method used to execute XPath queries in the SimpleXML extension?
What is the method used to execute XPath queries in the SimpleXML extension?
What type of class definition can be used to define multiple inheritance?
What type of class definition can be used to define multiple inheritance?
How can the constant defined below be accessed from within PHP?
How can the constant defined below be accessed from within PHP?
<code>
classmyClass {
constFOO = ‘BAR’;
}
</code>