Log 3742

$transactions = array(
array(‘customer’ => ‘John’, ‘transaction_type’ => ‘purchase’),
array(‘customer’ => ‘Alice’, ‘transaction_type’ => ‘refund’),
array(‘customer’ => ‘John’, ‘transaction_type’ => ‘purchase’),
array(‘customer’ => ‘Bob’, ‘transaction_type’ => ‘purchase’),
);

$count = 0;
foreach ($transactions as $record) {
if ($record[‘customer’] === “John”) {
$count++;
}
}

return $count;

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
  • Attributes
  • Custom attributes
  • Custom fields
Click outside to hide the comparison bar
Compare