You are here: Re: Access the string everywhere in the script « All PHP « IT news, forums, messages
Re: Access the string everywhere in the script

Posted by Christoph Burschka on 03/27/07 12:36

J.O. Aho schrieb:
>
>>secondly, the variable needs to
>>be declared global both inside and outside of the function if they are
>>to share the same scope.
>
>
> It seems that the PHP documentaion disagrees with you
> http://www.php.net/global
>
> Both examples works (if removing the $ infront of global in example 1)
>
>

Wow, I didn't know that. So all those commands declaring global
variables outside functions were redundant... well, you never quit learning.

--cb

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация