Created
March 14, 2017 08:35
-
-
Save phpfiddle/5766e58cdb5cf0ea646c70ed4dcc7649 to your computer and use it in GitHub Desktop.
[ Posted by Abdelfattah ] php explode explode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = "foo:*:1023:1000::/home/foo:/bin/sh"; | |
list($user, $pass, $uid, $gid, $gecos, $home, $shell) = explode(":", $data); | |
echo $user; // foo | |
echo $pass; // * | |
echo $uid; //1023 | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment