note 18239 added to function.substr-count

From: Date: Tue, 15 Jan 2002 19:25:22 +0000
Subject: note 18239 added to function.substr-count
Groups: php.notes 
Request: Send a blank email to php-notes+get-24847@lists.php.net to get a copy of this message
$myString = "L<b>e</b>s Inconnus dis<b>e</b>nt: Il n<b>e</b> faut pas pr<b>e</b>ndr<b>e</b> l<b>e</b>s g<b>e</b>ns pour d<b>e</b>s cons mais il n<b>e</b> faut pas oubli<b>e</b>r qu'ils le son!!"; echo "myString: $MyString<br>\n"; $nbE = substr_count($maChaine, "e"); echo "There is $nbE 'e' in this string<br>\n"; why does this code return 11: there is 10 e !!!! -- http://www.php.net/manual/en/function.substr-count.php http://master.php.net/manage/user-notes.php?action=edit+18239 http://master.php.net/manage/user-notes.php?action=delete+18239 http://master.php.net/manage/user-notes.php?action=reject+18239

« previous php.notes (#24847) next »