You are here: Re: What is wrong here with in_array? « PHP Programming Language « IT news, forums, messages
Re: What is wrong here with in_array?

Posted by P Pulkkinen on 01/16/07 09:19

I reply to writer's this sentence only:

> I check for existance of an array in a string, ...

With 'in_array' you can check (afaik)
- existence of a string in an array
- existence of an array in another array (since php 4.2)

bool in_array ( mixed needle, array haystack [, bool strict] )

Haystack is never a string, always an array.

But since php does autoconversion things, perhaps thats why you only get
warning level error.

But I didn't go through the actual code, this was just a guess.

 

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

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