for each with index php with example Example: php foreach index foreach($array as $key=>$value) { // do stuff }