Concise syntax for javascript if statements without curly brackets
<p>So pragmatically, I've got a quick and dirty answer to what I'm looking for <a href="http://stackoverflow.com/questions/4057827/nested-if-statements-without-brackets">here</a>.  But why isn't using that a good idea?  Why can't I find any formal documentation of it?  Is it not part of the spec and standard?  Is it not widely supported?  Is it just because minification could break code using that syntax?</p>

<p>If you could point me to more comprehensive docs of the feature, I'd appreciate that.  What defines the contents of the <code>if</code> block?  Is it indentation based?  If it was, that'd be interesting.</p>

<p>On another note, is there something similar to this syntax for <code>if</code> statements in PHP?  I can swear that I've seen them being used here and there, but I can't find any examples off hand.  Am I just crazy and it actually doesn't exist in PHP, or can those types of <code>if</code> blocks be used in PHP?  Does such an <code>if</code> block support having an <code>else</code> as well, both in JS and PHP?</p>

<p>It seems that there's an indentation based one as well as a single-line based syntax as well.  What can you tell me about the following?</p>

<p><code>
if(condition) do_some_statement();
</code></p>

<p>Thanks</p>
