[PHP] global variable again?

2001-08-25 Thread nafiseh saberi
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

Re: [PHP] global variable again?

2001-08-25 Thread Chris Hayes
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