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

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]


Удаленная работа для программистов  •  Как заработать на 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

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