Hello, I have been having some big troubles with this code, I would like it if you guys could help me with it. I get this error on the browser:
Parse error: parse error, unexpected '.', expecting ')' in /var/www/html/functions12.php on line 7 and line 17.
The code is below.
<?php
function getStateCode()
{
$stateCode = array(1=> "AL" ,
"AK" ,
"AZ" ,
...
"WY" );
return $stateCode;
}
function getStateName()
{
$stateName = array(1=> "Alabama",
"Alaska",
"Ariziona",
...
"Wyoming" );
return $stateName;
}
?>