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, $x2)
3 {
4 return $x1 + $x2;
5 }
6
7 $x1 = 0;
8 $x2 = 1;
9
10 for ($i = 0; $i < 10; $i++) {
11 echo fibonacci($x1, $x2) . ‘,’;
12 }
13 ?>
</code>
What will be the value of $b after running the following code?
What will be the value of $b after running the following code?
<code>
$a = array(‘c’, ‘b’, ‘a’);
$b = (array)$a;
</code>
How can you redirect a client to another page using PHP?
How can you redirect a client to another page using PHP?
What is the output of the following code? <code> 1 <?php 2 $a = ‘a’; $b = ‘b’
What is the output of the following code?
<code>
1 <?php
2 $a = ‘a’; $b = ‘b’;
3 echo isset($c) ? $a.$b.$c : ($c = ‘c’).’d’;
4 ?>
</code>
Which is the most efficient way to determine if a key is present in an array,assuming the array has no NULL va
Which is the most efficient way to determine if a key is present in an array,assuming the array has
no NULL values?
Which 2.17of the following formats is used to describe web services?
Which 2.17of the following formats is used to describe web services?
What will the following code piece print?
What will the following code piece print?
echostrtr(‘Apples and bananas’, ‘ae’, ‘ea’)
How can precisely one byte be read from a file, pointed by $fp?
How can precisely one byte be read from a file, pointed by $fp? (Choose 2)
Which one of the following technologies was not built into PHP before version 5?
Which one of the following technologies was not built into PHP before version 5?
What will be the output value of the following code?
What will be the output value of the following code?
<code>
$array = array(1,2,3);
while(list(,$v) = each($array));
var_dump(current($array));
</code>