Possible Duplicate:
Difference between if () { } and if () : endif;
Simple question,
When I started programming PHP I was shown my if statements like this:
If(1 == 1):
Echo 'hello world';
Endif;
Where as most people prefer
If(1== 1) {
Echo 'hello world';
}
Is there any difference? Does is improve the speed of the script or is it Better than the way I do it?