I have been wondering what the differents are between these two ways.
IF ($something=='1'){echo "this is a test";}
IF ($something=='1'){?>this is a test<?;}
I find that in most casses it is easier to break out of php coding than to use the echo function, and the line is shorter that way.
Also if you have a long text with one promt, you can do like this.
IF ($something=='1'){echo "this is a little test ".$string." and here will be some more";}
IF ($something=='1'){?>this is a little test <?echo $string;?> and here will be some more<?;}
Here it is longer, but is it a longer text it seems easier to read in ex. 2.
But is they any differents. I always se ex. 1 written on the internet, and I wondered why no one uses ex. 2.
best
Michael