Programming Languages PHP Objective
Mar 15, 2013

The output of ofllowing script would be

$somerar=15;

function ad it () {

 

GLOBAL $somevar;

$somerar++ ;

echo "somerar is $somerar";

}

addit ();

Choose the correct answer:
A) somerar is 15
B) somerar is 1
C) somerar is 16
D) somerar is $ somerar
Detailed Explanation

Option C is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback