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?
The statement are equals though for a better legibility in a Model View Controller project is better to use
in model/controller part and the other one in the View part.
so a web designer/ graphic can better handle html code.