Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php explode

$list = "one-two-three";
$sep_char = "-";
// array of all needed items: "one", "two", "three"
$arr = explode($sep_char, $list);
// array of max two items: "one", "two-three"
$arr = explode($sep_char, $list, 2);
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #explode
ADD COMMENT
Topic
Name
7+3 =