What is the maximum length of a String in PHP?
<p>So how big can a <code>$variable</code> in PHP get?   I've tried to test this,  but I don't have enough system memory (~2gb).   I figure there has to be some kind of limit.  What happens when a string gets too large?  Is it concatenated, or does PHP throw an exception? </p>
