explode() function divides string into various elements, returning these elements in an array.
The syntax is: array explode (string separator, string string [, int limit])
<?
$info = "A|b|i";
$user = explode("|", $info);
print $user;
?>
Related examples in the same category