Operating on array elements
<? $dishes['A'] = 12; $dishes['A']++; $dishes['B'] = 3; $dishes['total'] = $dishes['A'] + $dishes['B']; if ($dishes['total'] > 15) { print "You ate a lot: "; } print 'You ate ' . $dishes['A']; ?>