Jump to content

syntax v alternative syntax?


wright67uk

Recommended Posts

This question really is subjective.

 

Personally, i prefer:

 

if($bal  > 100) 
{
    echo "you have over 100 pounds;
}
else
{
    echo "you have less than 100 pounds";
}

 

I find that it makes reading the code easier.  But not everyone agrees.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.