You are here: Function to seek a substring in a string « All PHP « IT news, forums, messages
Function to seek a substring in a string

Posted by Jorge A on 10/25/05 14:52

Is there any function in PHP to know if a string is a substring of
another string?

For instance:
$title="White men can't jump";
$text="white";

function($title, $text) would return a boolean depending on $text is a
substring or not.

I have only found some string compare functions flicking through the
documentation.

Thanks in advance!

 

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

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