a) Rasmus Lerdorf b) Willam Makepiece c) Drek Kolkevi d) List Barely Answer: a Explanation: PHP was originally created ...
View Question
What will be the value of $a and $b after the function call in the following PHP code?
<?php
function doSomething( &$arg ) {
$return = $arg;
$arg += 1;
return $return;
}
$a = 3;
$b = doSomething( $a );
?>
What will be the value of $a and $b after the function call in the following PHP code? ...
View QuestionIf $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?
If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?
View Question
What will be the output of the following PHP code?
<?php
$user = array(“Ashley”, “Bale”, “Shrek”, “Blank”);
for ($x=0; $x < count($user); $x++) {
if ($user[$x] == “Shrek”) continue;
printf ($user[$x]);
}
?>
What will be the output of the following PHP code? <?php $user ...
View Question
Which of the looping statements is/are supported by PHP?
i) for loop
ii) while loop
iii) do-while loop
iv) foreach loop
Which of the looping statements is/are supported by PHP? i) for loop ii) while loop iii) do-while loop iv) foreach loop a) ...
View Question
What will be the output of the following PHP code?
<?php
$team = “arsenal”;
switch ($team) {
case “manu”:
echo “I love man u”;
case “arsenal”:
echo “I love arsenal”;
case “manc”:
echo “I love manc”; }
?>
What will be the output of the following PHP code? <?php $team ...
View Question
Which of the conditional statements is/are supported by PHP?
i) if statements
ii) if-else statements
iii) if-elseif statements
iv) switch statements
Which of the conditional statements is/are supported by PHP? i) if statements ii) if-else statements iii) if-elseif statements iv) switch statements a) ...
View Question
What will be the output of the following PHP code?
<?php
$num = 10;
echo ‘What is her age? \n She is $num years old’;
?>
What will be the output of the following PHP code? <?php $num ...
View QuestionWhich of the below symbols is a newline character?
a) \r b) \n c) /n d) /r Answer: b Explanation: PHP treats \n as a newline ...
View Question
What will be the output of the following PHP code?
<?php
$a = 5;
$b = 5;
echo ($a === $b);
?>
What will be the output of the following PHP code? <?php $a ...
View Question