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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.