You are here: Re: NEED HELP Incrementing a variable name « All PHP « IT news, forums, messages
Re: NEED HELP Incrementing a variable name

Posted by Nitrous on 10/10/19 11:33

ahh hot damn pete you da man. :D
i couldn't find that info anywhere...
thanks heaps. good luck to you.

regs Nitrous

"Peter van Schie" <vanschie.peter@gmail.com> wrote in message
news:4390eca0$0$95893$dbd4b001@news.wanadoo.nl...
> Nitrous wrote:
>> Thanks Peter
>> In this case that will probably work... I'll try.
>> But my question really is about trying to
>> "concatenate" $general_image to $i to achieve the variable name
>> $general_image1
>>
>> Any thoughts on this.
>
> Oh, you mean like this?
>
> <?php
> for($i=1; $i<4; $i++)
> {
> if (${"general_image".$i} != "&nbsp;")
> {
> // blah blah...
> }
> }
> ?>
>
> --
> http://www.phpforums.nl

 

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

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