ResumesInn
Welcome  ,
Interview Questions >> PHP >> What will be the output ?
Next Question Previous Question

What will be the output ?

<?php
    $num = 10;
    function multiply(){
    $num = $num * 10;
    }
    multiply();
    echo $num;
?>



  Prasanjeet Ghosh wrote ...
OUTPUT : 10
  Joseph Ranjan wrote ...
Output : 10

The $num variable was not a global one . so the function multiple( ) can not alter the value of $num which was declared outside .



Login to write answer for this question !
Want to place your ads in this website ?
50USD Per Month for single placement. Contact Us
All Rights Reserved . Developed by SJRANJAN