Chaitanya Lakshmi
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook
  • About Me
  • Job Duties
  • Knowledge Blog
  • Applications
  • Contact Us
    • Linked In
    • Facebook

What is the value displayed when the following is executed?

2/27/2012

1 Comment

 
Assume that the code was executed using the following URL:
testscript.php?c=25

<?php
function process($c, $d = 25)
{
global $e;
$retval = $c + $d - $_GET['c'] - $e;
return $retval;
}
$e = 10;
echo process(5);
?>


  • 25
  • -5
  • 10
  • 5
  • I don’t know
Answer:
-5


1 Comment
PAVAI N P
11/12/2020 09:34:49 pm

Can u plz tell me the explanation for this

Reply



Leave a Reply.

    Author

    Write something about yourself. No need to be fancy, just an overview.

    Archives

    February 2012

    Categories

    All
    General
    Krds
    Phponweb

    RSS Feed

Powered by Create your own unique website with customizable templates.