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