Hi, I currently want to split between commas and return it an array, this can accomplished with this.
Now I want to return like this:
But it's returning as this.
Code:
$string = "'i like birds, and dogs','col2 value','col3 value'";
$array = explode(',',$string);
Now I want to return like this:
Code:
Array (0 => 'i like birds, and dogs',
1 => 'col2 value',
2 => 'col3 value')
But it's returning as this.
Code:
Array (0 => 'i like birds',
1 => 'and dogs',
2 => 'col2 value',
3 => 'col3 value')