Tuesday, 21 February 2012

Q: what is strpos?


strposFind the position of the first occurrence of a substring in a string.
// We can search for the character, ignoring anything before the offset
$newstring 'abcdef abcdef';
$pos strpos($newstring'a'1); // $pos = 7, not 0

No comments:

Post a Comment