array_push vs $str .= in PHP
<p>which one of the 2 have the best performance?</p>

<p>In javascript I was heard douglas crockford say that you shouldn't use str += if you are concatenating a large string but use array.push instead.</p>

<p>I've seen lots of code where developers use $str .= to concatenate a large string in PHP as well, but since "everything" in PHP is based on arrays (try dumping an object), my thought was that the same rule applies for PHP.</p>

<p>Can anyone confirm this?</p>
