icon sc-linkedin logo of codepen-icon logo of github-icon youtube play button

notes by Adam Sullovey

web & mobile application developer
practicing in Toronto, ON

US States for Select element in PHP

Need a list like this?

array(
     'AL'=>"Alabama",
     'AK'=>"Alaska",
     'AZ'=>"Arizona",
     ..

Eddie has you covered. Check his US State related PHP snippets. I was able drop that array into Laravel’s Form::select function and have a state selector ready to render.

comments powered by Disqus