Saturday, May 24, 2008

PHP strstr() Function

The strstr() function searches for the first occurrence of a string inside another string.

This function returns the rest of the string (from the matching point), or FALSE, if the string to search for is not found.

<?php  echo strstr("Hello world!","world");  ?>

<?php  echo strstr("Hello world!",111);  ?>


No comments: