Given the default PHP configuration, how can all of the parameters provided via GET be accessed in a form of a string?
Answer : C
How to read a single line, no matter how long from an file opened in the example below?
$fp = fopen("my_file.txt", "w");
Answer : D
Which of the following statements are NOT true?
Answer : E
Which of the following statements are correct? (Choose 2)
Answer : C,D
How many elements does the array $pieces contain after the following piece of code has been executed?
$pieces = explode("/", "///");
Answer : C
What does the __FILE__ constant contain?
Answer : B
You want to parse a URL into its single parts. Which function do you choose?
Answer : A
How can a SimpleXML object be converted to a DOM object?
Answer : A
What PHP function can be used to remove a local file?
Answer : B
What DOM method is used to load HTML files?
Answer : D
What is the output of the following script?
1 <?php
2 function fibonacci (&$x1 = 0, &$x2 = 1)
3 {
4 $result = $x1 + $x2;
5 $x1 = $x2;
6 $x2 = $result;
8 return $result;
9 }
11 for ($i = 0; $i < 10; $i++) {
12 echo fibonacci() . ',';
13 }
14 ?>
Answer : B
What will be the result of the following operation?
array_combine(array("A","B","C"), array(1,2,3));
Answer : C
Which of the following functions can help prevent session fixation vulnerabilities?
Answer : D
How can you determine if magic_quotes_gpc is enabled? (Choose 2)
Answer : A,D
You want to present the following formatted number: "999.000.000,00". Which function call is correct?
Answer : C