I have created an array like this.
$oldarray = array('Condition' => 'New',"MinimumPrice" => "$minprice");
Now I need to add additional array names and values depending on if statements. How can I push_array or whatever the function would be to get the results to.
$finalarray = array('Condition' => 'New',"MinimumPrice" => "$minprice", 'NewLabel' => 'labelvalue');
Thank you in advance.
Simple way to add values to array in php