tapan — 2010-05-07T12:00:56-04:00 — #1
Is there any limit on how much data can be stored in variables in php ?
scallioxtx — 2010-05-07T14:03:34-04:00 — #2
From the manual
As for strings (and I think that also applies to arrays) the limit would be the memory limit of the PHP process AFAIK.
starlion — 2010-05-07T17:45:23-04:00 — #3
*the SUM limit of all variables and resources would be the memory limit of the PHP process.
Generally speaking though, if you hit the memory allocation limit, you're doing something wrong.
tapan — 2010-05-09T06:31:14-04:00 — #4
And how would i know if i am hitting the limit and what will be the consequences ?
cranial_bore — 2010-05-09T07:31:42-04:00 — #5
out of memory error
The amount of memory PHP will/can consume can be set in php.ini (e.g memory_limit = 128M)