CSE :: PHP - CS
- A function in PHP which starts with ______ (double underscore) is know as.
-
What will be the output of the following PHP code?
<?php
function foo($msg)
{
echo "$msg";
}
$var1 = "foo";
$var1("will this work");
?>
- Which one of the following PHP functions can be used to build a function that accepts any number of arguments?
<?php
echo ord ("hi");
?>
<?php
$str = "Hello World"
echo wordwrap($str,5,"n");
?>