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