PuStudy.Com Start write and Run your Web Code Online Work, PuStudy.Com Provide Online Web Editor, Every Language Code Work in this Editor, Editor Work Like as - Html, Php, Css, Bootstrap, Asp, jQuery Etc.
<?php function myTest() { $x = 5; // local scope echo "Variable x inside function is: $x
"; } myTest(); // using x outside the function will generate an error echo "Variable x outside function is: $x
";
?>