random1 Posted September 8, 2009 Share Posted September 8, 2009 What is the maximum number of characters a string can contain in PHP? The reason I'm asking is because I've created code that creates an output buffer for all HTML code output to browser. Quote Link to comment https://forums.phpfreaks.com/topic/173526-solved-php-max-length-of-a-string/ Share on other sites More sharing options...
Mark Baker Posted September 8, 2009 Share Posted September 8, 2009 No idea, and performance won't necessarily be so good with very long strings, but I think you're talking millions of characters.... effectively limited by available memory Quote Link to comment https://forums.phpfreaks.com/topic/173526-solved-php-max-length-of-a-string/#findComment-914681 Share on other sites More sharing options...
DarkWater Posted September 8, 2009 Share Posted September 8, 2009 PHP has no built-in limit to string length. It's completely based on the memory available to the program. Quote Link to comment https://forums.phpfreaks.com/topic/173526-solved-php-max-length-of-a-string/#findComment-914699 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.