What will be the output of the following PHP code? [code] <?php $var = 10; function one() { echo $var; } one(); ?> [

What will be the output of the following PHP code?
Code:
<?php
    $var = 10;
    function one()
    {
        echo $var;
    }
    one();
?>
A. Error
B. 10
C. No Output
D. None of the Mentioned
 

Tìm kiếm

Back
Top