I think I am just plain stupid but I can't seem to get this to go. I have a string which I subsequently turn into an array
$string = "apple;pears;bananas";
$array = explode(";", $string);
The values of $array each need to be in its own array with the following base structure:
$basearray = array(
"label" => "",
"value" => "",
);
ultimately yielding an array of three arrays , where label and value of the first array are both "apples", "pears" for the second array etc. The trick is that the initial string might be longer/shorter (say "apple;pears;bananas;kiwis;strawberries"; and should thus yield a different amount of arrays. I hope I make myself clear enough :)