how long from an file opened in the example below?
How to read a single line, no matter how long from an file opened in the example below?
<code>
$fp = fopen(“my_file.txt”, “w”);
</code>
Which of the following statements are NOT true?
Which of the following statements are NOT true?
Which of the following statements are correct?
Which of the following statements are correct? (Choose 2)
How many elements does the array $pieces contain after the following piece of code has been executed?
How many elements does the array $pieces contain after the following piece of code has been
executed?
$pieces = explode(“/”, “///”);
What does the __FILE__ constant contain?
What does the __FILE__ constant contain?
How can a SimpleXML object be converted to a DOM object?
How can a SimpleXML object be converted to a DOM object?
What PHP function can be used to remove a local file?
What PHP function can be used to remove a local file?
What DOM method is used to load HTML files?
What DOM method is used to load HTML files?
What is the output of the following script? <code> 1 <?
What is the output of the following script?
<code>
1 <?php
2 function fibonacci (&$x1 = 0, &$x2 = 1)
3 {
4 $result = $x1 + $x2;
5 $x1 = $x2;
6 $x2 = $result;
7
8 return $result;
9 }
10
11 for ($i = 0; $i < 10; $i++) {
12 echo fibonacci() . ‘,’;
13 }
14 ?>
</code>
Which function do you choose?
You want to parse a URL into its single parts. Which function do you choose?