What will be the output of the following PHP code?
$color = "maroon";
					 Home | Discussion Forum
					 
						
                        
                    
                    

Free Online Test

Taiyari24Hour

What will be the output of the following PHP code?

$color = "maroon";
$var = $color[2];
echo "$var";



View More Related Question

1) What will be the output of the following PHP code?

$score = 1234;
$scoreboard = (array) $score;
echo $scoreboard[0];

2) What will be the output of the following php code?

 $num  = 1;
$num1 = 2;
print $num . "+". $num1;
?>

3) Which of the below symbols is a newline character?

4) Which of following variables can be assigned a value to it?

  1. $3hello
  2. $_hello
  3. $this
  4. $This

5) What will be the output of the following php code?

 $num  = "1";
$num1 = "2";
print $num+$num1;
?>

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.