The Obligitory Floor Model

if_opts_array(
	'IFCASES'=> array('gender' => 'male', 'gender' => 'female', 'gender' => 'mom'),
	'IFINCREMENT' => 1,
	'IFOFFSET' => NULL
 );
 
if($data) {
    //what to do with the first array value
break;
notnow:
    //instructions for the data after the first array value
break;
notyet:
    //instructions for the end array value
break;
when:
    //error handling
}

The Breakdown

This is a framework or built-in function idea. If your counting an array this gives you more incremental control at the cost of manually calculating your own offset but that's partially why one might use this. hence the simplistic ways of saying "zero"

if($data=array(), $options=array()[, $increment) {
elseifaka notnow, as in there's more to this loop template. bootstrap's grid replaces `