You are here: Re: strpos - and multiple needles? « PHP Programming Language « IT news, forums, messages
Re: strpos - and multiple needles?

Posted by My Pet Programmer on 12/28/07 14:38

Iván Sánchez Ortega said:
> jodleren wrote:
>
>> Hi!
>>
>> I was reading php.net for a way to find a number of characters in a
>> strings. Say I want to look for a b and c ind $string.
>> As far as I could see, there is no function for that.
>
> preg_match("[abc]",$subject);
>
>
> You might find reading something on regular expressions useful.
>
>
> Cheers,

That will only tell you if any of the characters are in the string. Do
you have one that will say whether all of them are in the haystack?





--
Anthony Levensalor
anthony@mypetprogrammer.com

Only two things are infinite, the universe and human stupidity,
and I'm not sure about the former. - Albert Einstein

 

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

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