- print_r: documentation ( source)
- explode: documentation ( source)
<?php
// Everything you enter here will be executed by our servers. Try it!
$data = "foo:*:1023:1000::/home/foo:/bin/sh";
$a = list($user, $pass, $uid, $gid, $gecos, $home, $shell) = explode(":", $data);
echo $shell;
print_r($a);