how to split sting in php
snippet in php

php split string

user3960

explode(" ","Geeks for Geeks")

how to split sting in php

user7617


<?php
list($user, $pass, $uid, $gid, $extra) =
    split(":", $passwd_line, 5);
?>

string to array in php

user8120

print_r(explode(',',$yourstring));