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?

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

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

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

3) Which statement will output $x on the screen?

4) Which version of PHP introduced Try/catch Exception?

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

function track()
{
static $count = 0;
$count++;
echo $count;
}
track();
track();
track();

UP Gk Online Test

taiyari24hour.com

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