Just loop through the array. Or use array_unique.
Suppose you have an array
$basket = array(
array('1', 'First item', '10.00', 'GBP'),
array('2', 'Second item', '5.00', 'GBP'),
array('3', 'Troisieme chose', '25.00', 'EUR')
);
Then you can just loop through the array, checking that the currencies are all the same as the first one.
So maybe
// NB: assumes that there is at least one item in the basket otherwise the following will fail or throw a notice / warning
$different_currencies = false;
$first_currency = $basket[0][3];
foreach ($basket as $item) {
if ($item[3] != $first_currency) {
$different_currencies = true;
}
}
Or something?
Mark