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

Posted by mark on 06/29/05 23:59

Thanks Andy, I was preparing a runable piece of code to post and came
across the problem! I changed a variable name in an include file which
was causing the problem. Need some sleep!

Cheers.


Andy Hassall wrote:
> On Wed, 29 Jun 2005 20:35:18 +0000 (UTC), mark <mark@something.com> wrote:
>
>
>>$myvar = "test";
>>
>>function myfunc() {
>>global $myvar;
>>echo $myvar;
>>}
>>
>>However, when echoing $myvar it is blank. Can anybody tell me what I am
>>doing wrong?
>
>
> Post a runnable piece of code that demonstrates the problem - the one you just
> posted does not call the function.
>

 

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

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