CSE :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
function email()
{
$email = ’contact@examveda.com’;
$new = strstr($email, ‘@');
echo $new;
}
email();
?>
-
What will be the output of the following PHP code ?
<?php
function string()
{
echo strstr("Hello world!", 111);
}
string();
?>
- . . . . . converts the keys of an array into values and the values into keys.
-
Above usleep() function pauses PHP for .
usleep(1000000);
-
Output will be:
$array = array(0, 1, 2);
$array = array_pad($array, -6, ‘NEW’);
-
phpinfo() will display about?
1. OS version information
2. PHP installation
3. Variables
4. HTTP headers -
The below statement will return.
$Var = substr(""abcdef"", -4, 1);
- Returning values from functions may include .....
A.
Array ( [1] => NEW [2] => NEW [3] => NEW [4] => 0 [5] => 1 [6] => 2 ) |
B.
Array ( [-1] => NEW [-2] => NEW [-3] => NEW [-4] => 0 [-5] => 1 [-6] => 2 ) |
C.
Array ( [0] => NEW [-1] => NEW [-2] => NEW [-3] => 0 [-4] => 1 [-5] => 2 ) |
D.
Array ( [0] => NEW [1] => NEW [2] => NEW [3] => 0 [4] => 1 [5] => 2 ) |