Does anyone know the maximum size of string?
About how if I've a very long string need to be stored in a variable. What can I do?
$x="..........very long string.........";
William
Just try to write it to string and see what happens. I don't think there is a limit on the length of a string, I've personally buffered several thousand db rows into a single string before output in the past. I'm not saying it was efficient mind you, but I've done it. Several thousand db rows == a pretty long string🙂 HTH.
-geoff
PHP does not have strings, only variables that you can use as a string.
And those vars can be big, megabytes.