You are here: Re: Function like "in" in Delphi? « PHP Programming Language « IT news, forums, messages
Re: Function like "in" in Delphi?

Posted by readmy on 10/30/06 12:20

In article <qzD0h.90$XF5.13@newsfe06.lga>, rstearns1241@charter.net
says...
> Sonnich wrote:
> > Hi
> >
> > Is the such a function like IN in delphi:
> >
> > if( $somechar in ["a", "b", "d"])
> > dsafsakjldg;
> >
> > where true is for the characters mentioned above.
> >
> > BR
> > S
> >
> What is wrong with if(strpos("abd", $somechar) !== FALSE)
>

I'd say I'd prefer the Delphi set construct myself too - its so much
cleaner in a number of ways - but that does the job of course.

 

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

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