You are here: Re: global variable in function « PHP Programming Language « IT news, forums, messages
Re: global variable in function

Posted by Geoff Berrow on 05/14/05 19:48

I noticed that Message-ID: <hf8c81h348758kvt6864vpc8lp5otl7n5g@4ax.com>
from Andy Hassall contained the following:

><?php
>$myvariable = 'x';
>echo $myvariable;
>
>function f()
>{
> global $myvariable;
> echo $myvariable;
>}
>?>

and of course you'll have to call the function.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

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

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