<?php $states = array("A","B"); print "before pad:<br />"; print_r($states); $states = array_pad($states,4,"C"); $states = array("A","B","C","D"); print "<br />after pad:<br />"; print_r($states); ?>