Jump to content


Photo

php array string limitations


  • Please log in to reply
5 replies to this topic

#1 scliburn

scliburn
  • Members
  • PipPipPip
  • Advanced Member
  • 30 posts

Posted 20 July 2006 - 04:46 PM

i have an array that has a value (string) that has approx 65K characters. Is that a problem, or are there limitations on the string count in an array?

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 20 July 2006 - 04:59 PM

Is it causing problems?

#3 treilad

treilad
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 20 July 2006 - 05:04 PM

I wouldn't think so. Might get confusing, however.

#4 scliburn

scliburn
  • Members
  • PipPipPip
  • Advanced Member
  • 30 posts

Posted 20 July 2006 - 05:15 PM

well, i'm not sure if its the array or something else. some data is getting truncated and wasn't sure if it was the array or something else.

#5 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 20 July 2006 - 08:02 PM

where does this string come from?
Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...

#6 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 20 July 2006 - 08:09 PM

From the manual:

Note:  It is no problem for a string to become very large. There is no practical bound to the size of strings imposed by PHP, so there is no reason at all to worry about long strings.


Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users