note 117104 added to function.substr-count

From: Date: Wed, 15 Apr 2015 15:10:54 +0000
Subject: note 117104 added to function.substr-count
Groups: php.notes 
Request: Send a blank email to php-notes+get-202272@lists.php.net to get a copy of this message
To account for the case that jrhodes has pointed out, we can change the line to: substr_count ( implode( ',', $haystackArray ), $needle ); This way: array ( 0 => "mystringth", 1 => "atislong" ); Becomes mystringth,atislong Which brings the count for $needle = "that" to 0 again. ---- Server IP: 72.52.91.14 Probable Submitter: 66.186.164.68 ---- Manual Page -- http://php.net/manual/en/function.substr-count.php Edit -- https://master.php.net/note/edit/117104 Del: integrated -- https://master.php.net/note/delete/117104/integrated Del: useless -- https://master.php.net/note/delete/117104/useless Del: bad code -- https://master.php.net/note/delete/117104/bad+code Del: spam -- https://master.php.net/note/delete/117104/spam Del: non-english -- https://master.php.net/note/delete/117104/non-english Del: in docs -- https://master.php.net/note/delete/117104/in+docs Del: other reasons-- https://master.php.net/note/delete/117104 Reject -- https://master.php.net/note/reject/117104 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202272) next »