Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

PHP Select Form Helper

DZone's Guide to

PHP Select Form Helper

·
Free Resource
// takes an array of values and a value to match, and outputs formatted \n";
		
    $i++;
  }
}

//sample usage:
$values = array(
  "lb" => "Pounds",
  "ea" => "Each",
  "oz" => "Ounces");
				
  selectHelper($values, $product->unit);
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}