Rasmus,

If I were going to remanufacture http://www.php.net/manual/en/function.explode.php I 
would add/edit:

$data = "foo:*:1023:1000::/home/foo:/bin/sh";
list($user,$pass,$uid,$gid,$gecos,$home,$shell) = explode(":",$data);

echo $user."<br>".$pass."<br>".$uid."<br>".$gecos."<br>".$home."<br>".$shell;

Thanks again.

HTH?
John


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to