PHP function can return different & multi-values at first sight, but it can not
<pre><code>&lt;?php

function some_func(){

 return 'some_str_type' &amp;&amp; 'another_str_type';
}

function another_func(){

 return '123' || '456';
}


print some_func(); //1 - the same as true

print another_func(); //again prints 1, as true
</code></pre>

<p>The clean style of coding of any language dictates, to drop non-small function into small ones - because one function SHOULD return single value.</p>

<p><b>BUT</b>, i saw this approach in source of some popular php-template langs (smarty, dwoo).
So what is that? When to code this way? (mean any real-world situation)</p>
