avo Posted July 2, 2006 Share Posted July 2, 2006 Hi all How can i count the amount of splits the explode() function as madeexample [quote]$var="one,two,three,four"$temp=explode ("," ,$var);echo $temp[1];echo $temp[2];echo $temp[3];echo $temp[4];[/quote]now we know it as split four times but how can i count this please.THanks in advance Link to comment https://forums.phpfreaks.com/topic/13496-counting-how-many-times-explode/ Share on other sites More sharing options...
avo Posted July 2, 2006 Author Share Posted July 2, 2006 Hi Sorted it just [quote]count($temp);[/quote]cheera Link to comment https://forums.phpfreaks.com/topic/13496-counting-how-many-times-explode/#findComment-52220 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.