What will be the output of the following PHP code?
There are _____ configuration directives pertinent to PHP's mail function.
The filesize() function returns the file size in what unit?
The _____ method is an object-oriented version of the date() function.
Which of the following PHP functions can be used to get the current memory usage?
Which PHP directive should be used to disable just the fopen()
and file()
functions?
What is the output of the following PHP code?
<?php
$username = "jasoN";
if (ereg("([^a-z])",$username))
echo "Username must be all lowercase!";
else
echo "Username is all lowercase!";
?>
What will be the output of the following PHP code?
<?php
$username = "saRthaK";
if (ereg("([^a-z])",$username))
echo "Username must be all lowercase!";
else
echo "Username is all lowercase!";
?>
What will be the output of the following PHP code?
<?php
$names = array("Ram", "Bharat", "Laxman");
echo $names[0] . "is the brother of " . $names[1] . " and " . $names[1] . ".";
?>
What will be the output of the following code?
<?php
function convertSpace($string)
{
return str_replace("_", " ", $string);
}
$string = "Peter_is_a_great_guy!";
echo filter_var($string, FILTER_CALLBACK, array("options"=>"convertSpace"));
?>