Fraction of the value in the array that is already in a table


I am trying to split values that are already stored inside of an array everytime a "/" appears...would this work?


$start = array('hi', 'hello', 'yes/no');
$finish = explode('/', $start);

$finish should now look like:

$finish = array('hi', 'hello', 'yes', 'no');

It won't work because you are passing an array to explode, while it will only accept a string.

However you can do what you need in several ways. The shortest one would be

$finish = explode('/', implode('/', $start));