How can I simplify this:
if($quantity == 0)
$basket_item['status_text'] = 'out of stock';
else if($quantity >= $requested)
$basket_item['status_text'] = 'available';
else if($quantity < $requested)
$basket_item['status_text'] = 'not enough in stock';
As you can see I have to keep defining the $basket_item['status_text'] variable each time.
EDIT: just fixed the code