What will be the output of the following code?
function track()
{

Home | Discussion Forum

Free Online Test

Taiyari24Hour

What will be the output of the following code?

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



View More Related Question

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

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

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

$num = 10;
echo 'What is her age? n She is $num years old';

3) PHP files have a default file extension of..

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

5) Which of the following PHP statements will output Hello World on the screen?

  1. echo (“Hello World”);
  2. print (“Hello World”);
  3. printf (“Hello World”);
  4. sprintf (“Hello World”);

UP Gk Online Test

taiyari24hour.com

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