Re: Good grief
| From: | John Taylor-Johnston | Date: | Wed, 19 Feb 2003 07:40:08 +0000 |
| Subject: | Re: Good grief | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136120@lists.php.net to get a copy of this message | ||
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