You are here: Re: is element in array? « All PHP « IT news, forums, messages
Re: is element in array?

Posted by Gernot Frisch on 03/07/06 14:02

> This will look for the key 'Fu' in the array $arr and see if it has
> been set
> or not, has nothing to do with the data "Fu" that you are looking
> for. Your array has only the keys 0,1 and 2, so 'Fu' is unset which
> results in false.


Ahhh! split() creates an array (1=>"one", 2=>"two",...)
That was where my mind had a bend.
Thank you for in_array("Fu",$arr)!!!

-Gernot

 

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

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