Jump to content

AbeerSaba

New Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by AbeerSaba

  1. hi all , i am a new php learner i tried to make my 1st elseif statement i ran into a syntax error , tried several options non worked , would you please help ?! the code is below & i cant seems to work this issue any help is highly appreciated .

    <?php

    $name = ' sara ' ;

    if ( $name == 'New York' )
    {
    echo 'This is New York';
    }

    elseif 
    ( $name == 'sara' )



    echo ' hi sara ' ; 

    }


    else
    {
    echo 'No Match Found';
    }

    ?>

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.