snipt

Ctrl+h for KB shortcuts

PHP

PHP States Array

1
2
3
4
5
6
7
<?php

$optionArray = array("AK","AL","AR","AS","AZ","CA","CO","CT","DC","DE","FL","GA","GU","HI","IA","ID",
"IL","IN","KS","KY","LA","MA","MD","ME","MH","MI","MN","MO","MS","MT","NC","ND","NE","NH","NJ","NM","NV","NY",
"OH","OK","OR","PA","PR","PW","RI","SC","SD","TN","TX","UT","VA","VI","VT","WA","WI","WV","WY");

?>
https://snipt.net/embed/5f1a3b675ef27fdc8f6557b8eb2fe33e/
/raw/5f1a3b675ef27fdc8f6557b8eb2fe33e/
5f1a3b675ef27fdc8f6557b8eb2fe33e
php
PHP
7
2019-07-22T16:59:55
True
False
False
/api/public/snipt/15653/
php-states-array
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nv">$optionArray</span> <span class="o">=</span> <span class="k">array</span><span class="p">(</span><span class="s2">&quot;AK&quot;</span><span class="p">,</span><span class="s2">&quot;AL&quot;</span><span class="p">,</span><span class="s2">&quot;AR&quot;</span><span class="p">,</span><span class="s2">&quot;AS&quot;</span><span class="p">,</span><span class="s2">&quot;AZ&quot;</span><span class="p">,</span><span class="s2">&quot;CA&quot;</span><span class="p">,</span><span class="s2">&quot;CO&quot;</span><span class="p">,</span><span class="s2">&quot;CT&quot;</span><span class="p">,</span><span class="s2">&quot;DC&quot;</span><span class="p">,</span><span class="s2">&quot;DE&quot;</span><span class="p">,</span><span class="s2">&quot;FL&quot;</span><span class="p">,</span><span class="s2">&quot;GA&quot;</span><span class="p">,</span><span class="s2">&quot;GU&quot;</span><span class="p">,</span><span class="s2">&quot;HI&quot;</span><span class="p">,</span><span class="s2">&quot;IA&quot;</span><span class="p">,</span><span class="s2">&quot;ID&quot;</span><span class="p">,</span> </span><span id="L-4"><a name="L-4"></a><span class="s2">&quot;IL&quot;</span><span class="p">,</span><span class="s2">&quot;IN&quot;</span><span class="p">,</span><span class="s2">&quot;KS&quot;</span><span class="p">,</span><span class="s2">&quot;KY&quot;</span><span class="p">,</span><span class="s2">&quot;LA&quot;</span><span class="p">,</span><span class="s2">&quot;MA&quot;</span><span class="p">,</span><span class="s2">&quot;MD&quot;</span><span class="p">,</span><span class="s2">&quot;ME&quot;</span><span class="p">,</span><span class="s2">&quot;MH&quot;</span><span class="p">,</span><span class="s2">&quot;MI&quot;</span><span class="p">,</span><span class="s2">&quot;MN&quot;</span><span class="p">,</span><span class="s2">&quot;MO&quot;</span><span class="p">,</span><span class="s2">&quot;MS&quot;</span><span class="p">,</span><span class="s2">&quot;MT&quot;</span><span class="p">,</span><span class="s2">&quot;NC&quot;</span><span class="p">,</span><span class="s2">&quot;ND&quot;</span><span class="p">,</span><span class="s2">&quot;NE&quot;</span><span class="p">,</span><span class="s2">&quot;NH&quot;</span><span class="p">,</span><span class="s2">&quot;NJ&quot;</span><span class="p">,</span><span class="s2">&quot;NM&quot;</span><span class="p">,</span><span class="s2">&quot;NV&quot;</span><span class="p">,</span><span class="s2">&quot;NY&quot;</span><span class="p">,</span> </span><span id="L-5"><a name="L-5"></a><span class="s2">&quot;OH&quot;</span><span class="p">,</span><span class="s2">&quot;OK&quot;</span><span class="p">,</span><span class="s2">&quot;OR&quot;</span><span class="p">,</span><span class="s2">&quot;PA&quot;</span><span class="p">,</span><span class="s2">&quot;PR&quot;</span><span class="p">,</span><span class="s2">&quot;PW&quot;</span><span class="p">,</span><span class="s2">&quot;RI&quot;</span><span class="p">,</span><span class="s2">&quot;SC&quot;</span><span class="p">,</span><span class="s2">&quot;SD&quot;</span><span class="p">,</span><span class="s2">&quot;TN&quot;</span><span class="p">,</span><span class="s2">&quot;TX&quot;</span><span class="p">,</span><span class="s2">&quot;UT&quot;</span><span class="p">,</span><span class="s2">&quot;VA&quot;</span><span class="p">,</span><span class="s2">&quot;VI&quot;</span><span class="p">,</span><span class="s2">&quot;VT&quot;</span><span class="p">,</span><span class="s2">&quot;WA&quot;</span><span class="p">,</span><span class="s2">&quot;WI&quot;</span><span class="p">,</span><span class="s2">&quot;WV&quot;</span><span class="p">,</span><span class="s2">&quot;WY&quot;</span><span class="p">);</span> </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a><span class="cp">?&gt;</span><span class="x"></span> </span></pre></div> </td></tr></table>
array, php, states