hi.
I use global in this form:
?
global $a;
$a=strtotime('now');
.
.
.
echo $a; but in this line dont echo $a
I dont know why??
thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Look in the manual:
language.variables.scope.html
'global' is meant to use inside a function for accessing vars that are not
in a function (the main part).
I use global in this form:
?
global $a;
$a=strtotime('now');
.
.
.
echo $a; but in this line dont echo $a
Using global
2 matches
Mail list logo