Page 1 of 1

Maximum string size?

Posted: Sun Jul 26, 2009 1:09 pm
by aclees86
I am struggling to find the maximum size a string can hold in PHP. So far, the results indicate "more than you need", "8mb", "10mb" or "50mb" from most places.

Does anybody have a difinitive answer? In a week I'm going to be doing some work that'll probably include a string of 9mb, and wanted to find out the max size before running into any problems. Any ideas anybody?

Regards
A. Lees

Re: Maximum string size?

Posted: Sun Jul 26, 2009 1:16 pm
by jackpf
As long as your server has more than 9mb of memory then you'll be fine :P

Re: Maximum string size?

Posted: Sun Jul 26, 2009 1:26 pm
by aclees86
So it's not limited by the language itself? - Only by my hardware?

Regards
A. Lees

Re: Maximum string size?

Posted: Sun Jul 26, 2009 2:12 pm
by jackpf
Yeah. If you read up on strings you can see for yourself.