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

Posted by Sonnich on 10/30/06 08:18

Bob Stearns wrote:
> 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)'

final comment from me - one of the answers before was what I needed.
I need to test a single char, whether it is a, b or d - this could be
done in an if, but that might get pretty big and complex

S

 

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

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