Strange explode()

From: Date: Tue, 26 Oct 2004 13:08:54 +0000
Subject: Strange explode()
Groups: php.general 
Request: Send a blank email to php-general+get-200343@lists.php.net to get a copy of this message
Hi, Any idea why it is taking the first array as blank and giving me an array count of 3 instead of 2? <? $final="http://something.com/cgi-bin/atx/out.cgi?s=63&c=1&l=gals&u=http://bl ah.something.com/bs3/index1.htm"; $final2=explode("http://",$final); $res=count($final2); echo "<br><br><br>".$res; print_r($final2); ?> This is the output that is confusing me: Array ( [0] => [1] => something.com/cgi-bin/atx/out.cgi?s=63&c=1&l=gals&u= [2] => blah.something.com/bs3/index1.htm ) Thanks, Ryan

« previous php.general (#200343) next »