Split problems...

From: Date: Thu, 27 Jul 2000 11:11:09 +0000
Subject: Split problems...
Groups: php.general 
Request: Send a blank email to php-general+get-8526@lists.php.net to get a copy of this message
Split problems... I want tp split an Ip-Adresse (like 127.0.0.1) into pieces (127, 0, 0, 1) I tried: $ip_list = split(".", "127.0.0.1"); print "Items:".count($ip_list)."<BR>"; # First problem: Delivers Items: 10 (should be 4) for($i=0; $i<4; $i++) { $a = $ip_list[$i]; echo "$i: $a<BR>"; # Second Problem: $a is always mpty } Any ideas ? Regards Martin

« previous php.general (#8526) next »