note 8117 added to split

From: Date: Mon, 28 Aug 2000 10:23:07 +0000
Subject: note 8117 added to split
Groups: php.notes 
Request: Send a blank email to php-notes+get-3542@lists.php.net to get a copy of this message
try this to check how many time a character appear in a string $strin ="cccc0000xxx000xxx0"; $list=split("0",$string); $num=sizeof($list); $number=$num-1; echo $number; // will return 8 François Kloutse http://www.php.net/manual/function.split.php

« previous php.notes (#3542) next »