how to convert to array in php code example
Example 1: php object to array
//This works best
$array = json_decode(json_encode($object), true);
Example 2: string to array in php
print_r(explode(',',$yourstring));
Example 3: object to array php
$array = (array) $yourObject;
Example 4: convert string to array in php
array str_split($org_string, $splitting_length)