CSE :: PHP - CS
- Which of the following PHP functions can be used for generating unique id’s?
- Which one of the following functions can be used to compress a string?
-
What will be the output of the following PHP code?
<?php
echo ord ("hi");
?>
-
What will be the output of the following PHP code?
<?php
$str = "Hello World"
echo wordwrap($str,5,"n");
?>
-
What will be the output of the following PHP code?
<?php
echo ucwords("i love my country");
?>
-
What will be the output of the following PHP code?
<?php
echo lcfirst("welcome to India");
?>
-
What will be the output of the following PHP code?
<?php
function calc($price, $tax="")
{
$total = $price + ($price * $tax);
echo "$total";
}
calc(42);
?>
-
What will be the output of the following PHP code?
<?php
function a()
{
function b()
{
echo 'I am b';
}
echo 'I am a';
}
a();
a();
?>
-
What will be the output of the following PHP code?
<?php
function a()
{
function b()
{
echo 'I am b';
}
echo 'I am a';
}
b();
a();
?>