You are here: Re: Variable scope issue « PHP Programming Language « IT news, forums, messages
Re: Variable scope issue

Posted by Bent Stigsen on 06/01/06 21:34

rlee0001 wrote:
>> "==" vs. "="...
>
> Thanks for the quick response Oli. I actually made that error in
> creating the example I posted. My orignial code actually does a "!=". I
> found that assigning to variables within the FOR works...eg:
>
> $a = $myarray['a'];
> $b = $myarray['b'];
> $c = $myarray['c'];
>
> Then I can use $a..$c within all structures inside the loop fine. Very
> strange.

It really shouldn't be necessary. Give your code that produced the
erroneous output another look, or post it here.

/Bent

 

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

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