|
Posted by Rik on 10/27/06 08:31
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.
>
Well, I have never used Delphi, but when you maken an array, you can
offcourse search with in_array($char,array('a','b','d'));
--
Rik Wasmus
Navigation:
[Reply to this message]
|