What will be the output of the following PHP code?
<?php
function addFive($num)
{
$num += 5;
}
function addSix(&$num)
{
$num += 6;
}
$orignum = 10;
addFive( &$orignum );
echo "Original Value is $orignum<br />";
addSix( $orignum );
echo "Original Value is $orignum<br />";
?>
- Original Value is 15
- Original Value is 15 Original Value is 21
- Original Value is 15 Original Value is 15
- None Of the mentioned
(b).Original Value is 15 Original Value is 21
need an explanation for this answer? contact us directly to get an explanation for this answer