I am trying to use some numbers stored in php session inside the array and displaying them in foreach. For example:
$stored_values = '123,456,789';
Using these values inside array like this:
$array = array($stored_values);
and then trying foreach like:
foreach($array AS $values){
echo $values;
}
But the output is coming as one value for example:
OUTPUT: 123,456,789
Instead of each value separately.