split array php 7 code example
Example 1: php explode
$colors = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
Example 2: how to split sting in php
<?php
list($user, $pass, $uid, $gid, $extra) =
split(":", $passwd_line, 5);
?>