12m 00s
ID: 489
Which object method is automatically called when an object is cloned?
__copy()
__clone()
__drone()
__wakeup()
ID: 695
What happens when the script below is executed ?
namespace CustomArea; error_reporting(E_ALL); ini_set("display_errors", "on"); function var_dump($a) { return str_replace("Weird", $a, "Weird stuff can happen"); } $a = "In programming"; echo var_dump($a);
ID: 136
What is the output of the following code?
interface foo {} class_alias('foo', 'bar'); echo interface_exists('bar') ? 'yes' : 'no';
ID: 340
What is the output of the following script?
$str = "Hello"; if ($str == "Hello") { echo "a"; } else if ($str == "Goodbye") { echo "b"; } elseif ($str == "Hello") { echo "c"; } else echo "d";
ID: 352
$number = 25; if ($number <= 25) { echo "lte"; } else if ($number == 25) { echo "e"; } else if ($number >= 25) { echo "gte"; } else { echo "o"; }
Enter the exact script output
ID: 124
Which of the following statements correctly explains the use of instanceof and type hinting? Each correct answer represents a complete solution (Choose three).
ID: 324
What is the output of the following PHP script?
$myVar = 'foo'; $$myVar = 'bar'; echo $'myVar';
ID: 755
Take a look at the following code
function myFunction($a) { $a++; } $b = 1; myFunction($b);
What code do you need to replace so that $b has the value 2 at the end of the script? (May be multiple answers)
ID: 104
What will be the output of the following PHP script?
$array = [ 'a' => 'One', 'b' => 'Two', 'c' => [ 'd' => 'Three', 'e' => 'Four' ] ]; function print_element($array) { extract($array); return $c['e']; } print print_element($array);
ID: 183
Which of the following are the methods used for producing web services?