Posted by Toby Inkster on 01/16/69 11:31
brucie wrote:
> AFAIK php is insensitive to white space/hard returns
Obviously there are some places where it's important. e.g.
print "Foo";
will work.
print"Foo";
will not.
But overall, PHP is fairly flexible about white space: it certainly
doesn't need any after a statement terminator (semi-colon). More
generally, it doesn't usually need white space after a "punctuation mark".
e.g.
if(1==1){$v=4;$p=9;}else{$v=3;$p=10;}print($v+$p)."\n";
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
[Back to original message]
|