Skip to content

Instantly share code, notes, and snippets.

@LinuxPhreak
Created March 31, 2013 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LinuxPhreak/5280306 to your computer and use it in GitHub Desktop.
Save LinuxPhreak/5280306 to your computer and use it in GitHub Desktop.
Get the following error. Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'
$posts[] = array('type'=> $type, 'description'=> $desc, 'sfirstname'=> $sfn, 'slastname'=> $sln, 'sheight'=> $sheight, 'saddress'=> $saddress, 'saddress2'=> $saddress2', 'scity'=> $scity, 'sstate'=> $sstate, 'szip'=> $szip, 'sethnicity'=> $sethnicity, 'sclothing'=> $sclothing, 'vfirstname'=> $vfn, 'vlastname'=> $vln, 'vaddress'=> $vaddress, 'vaddress2'=> $vaddress2, 'vcity'=> $vcity, 'vstate'=> $vstate, 'vzip'=> $vzip, 'vethnicity'=> $vethnicity, 'vphone'=> $vphone, 'vdate'=> $vdate, 'vphoto'=> $vphoto);
@zachdyer
Copy link

zachdyer commented Apr 1, 2013

$posts[] = array('type'=> $type, 
    'description'=> $desc, 
    'sfirstname'=> $sfn, 
    'slastname'=> $sln, 
    'sheight'=> $sheight, 
    'saddress'=> $saddress, 
    'saddress2'=> $saddress2, 
    'scity'=> $scity, 
    'sstate'=> $sstate, 
    'szip'=> $szip, 
    'sethnicity'=> $sethnicity, 
    'sclothing'=> $sclothing, 
    'vfirstname'=> $vfn, 
    'vlastname'=> $vln, 
    'vaddress'=> $vaddress, 
    'vaddress2'=> $vaddress2, 
    'vcity'=> $vcity, 
    'vstate'=> $vstate, 
    'vzip'=> $vzip, 
    'vethnicity'=> $vethnicity, 
    'vphone'=> $vphone, 
    'vdate'=> $vdate, 
    'vphoto'=> $vphoto
    );

You had a " ' " after saddress2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment