Check existence of substring in a string

admin

Administrator
Staff member
Dear all,

In the string,

e.g.
$string=<font size=3 color="red"><b> string</b></font>

I want to check the existence of

$substring=size.

If so, then give the return value = <!-- m --><a class="postlink" href="http://www.phpbuilder.com/board/archive/index.php/3">http://www.phpbuilder.com/board/archive/index.php/3</a><!-- m -->,

Please give the related string function to accomplish this, thanks

Sincerely yours,
Simon
 
Back
Top