array_push vs $str .= in PHP -
Which is the best performance of one of 2?
In JavaScript, Douglas Crockford says that you should not use str + = if you add a large string but instead use the sarab.shoot.
I have seen a lot of code, where developers have $ str to consolidate PHP's large string. As well, but because in PHP "everything" is based on arrays (try to dump an object), I thought the same rule applies to PHP.
Can anyone confirm this?
Strings are ineligible in PHP so that. = = Javascript should not be affected by using + = as it does on php. That is, when you use the operator, you will not end up with two different stars.
See:
Comments
Post a Comment