Hello
the code is like this :
variables.php:
<? $x = 1; ?>functions.php:
<? require_once("variables.php"); function x () { echo "x = $x"; } ?>
index.php:
<? require_once ("functions.php"); x() ?>ERROR :
PHP Notice: Undefined variable: x in functions.php
this is not happening in languages like perl or c++ ; am i doing something wrong ?