You are here: Re: Simple Variable Syntax Question. « PHP Programming Language « IT news, forums, messages
Re: Simple Variable Syntax Question.

Posted by Geoff Berrow on 01/12/07 00:56

Message-ID: <45a6ae8b$1@news.bihnet.ba> from denis contained the
following:

>There is a shorter way I think. If we assume those are POST variables, the
>code might look something like
>
>foreach ($_POST as $name => $value)
> $name = $value;

Nearly.

foreach ($_POST as $name => $value){
$$name = $value;
}

--
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

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