note 84386 added to function.substr-count

From: Date: Fri, 11 Jul 2008 13:49:34 +0000
Subject: note 84386 added to function.substr-count
Groups: php.notes 
Request: Send a blank email to php-notes+get-141402@lists.php.net to get a copy of this message
It should be noted that unlike the other substr functions, the offset value cannot be a negative value. <?php echo substr_count('abcdefg', 'efg', 4, 3); // 1 echo substr_count('abcdefg', 'efg', -3, 3); // warning ?> ---- Server IP: 203.88.112.190 Probable Submitter: 220.245.178.132 (proxied: 123.243.252.93) ---- Manual Page -- http://www.php.net/manual/en/function.substr-count.php Edit -- https://master.php.net/note/edit/84386 Del: integrated -- https://master.php.net/note/delete/84386/integrated Del: useless -- https://master.php.net/note/delete/84386/useless Del: bad code -- https://master.php.net/note/delete/84386/bad+code Del: spam -- https://master.php.net/note/delete/84386/spam Del: non-english -- https://master.php.net/note/delete/84386/non-english Del: in docs -- https://master.php.net/note/delete/84386/in+docs Del: other reasons-- https://master.php.net/note/delete/84386 Reject -- https://master.php.net/note/reject/84386 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141402) next »