convert string into array php code example
Example 1: explode comma php
$myString = "9,[email protected],8";
$myArray = explode(',', $myString);
print_r($myArray);
Example 2: string to array in php
print_r(explode(',',$yourstring));
Example 3: string to array php
str_split ( string $string [, int $split_length = 1 ] ) : array
Example 4: explode a number php
$nums = "";
$nums .= $number;
$nums = $nums.$number;
$nums[0] is now 4, $nums[1] is now 5, etc..
$length = strlen($nums);
$target = strlen($nums) -1;
$last_digit = $nums[$target];