title: What is the maximum length of a String in PHP?
body: <p>So how big can a <code>$variable</code> in PHP get?   I've tried to test this,  but I'm not sure that I 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>