I have a string and a value. I am exploding the string which returns a few results to a list. I want to add each of those items from the list to an array, with the same value assigned to each string. Here is what I have so far:
$count = 3;
$amount = 2500;
$value = ceil ($amount / $count);
$string = "String1, String2, String3, ";
$strings = explode(", ", $string);
I want to run a foreach that puts $strings and $value into an array together. Any pointers?