Reply to Re: Something like "WHERE" from SQL

Your name:

Reply:


Posted by Captain Paralytic on 11/23/06 14:48

Kenoli wrote:
> Is there a way to accomplish something like the "WHERE" syntax from SQL
> in php? For example an equivalent to the following, which I know is
> not proper php syntax.
>
> foreach ($var as $key => $value WHERE $key != '3') {
> echo "$key is $value";
> }
>
> or
>
> implode (",", $_POST WHERE $_POST[name] != 'post');
>
> I keep wanting to be able to do things like this.
>
> --Kenoli

foreach ($var as $key => $value) {
if $key != '3'
echo "$key is $value";

[Back to original 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

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