zgkhoo Posted November 13, 2007 Share Posted November 13, 2007 Hi, Here i am putting my question in front to all of you that may be common one for you. My question is that: What is the array limit in PHP ? means How many elements can be stored in an array at a time while using PHP ? Link to comment https://forums.phpfreaks.com/topic/77131-array-limit-in-php%E3%80%82%E3%80%82%E3%80%82sorry-miss-postpls-removethanks/ Share on other sites More sharing options...
Orio Posted November 13, 2007 Share Posted November 13, 2007 The only thing that limits you is the value set in the memory_limit directive- how much memory php can use for it's data. It defaults to 128mb. Orio. Link to comment https://forums.phpfreaks.com/topic/77131-array-limit-in-php%E3%80%82%E3%80%82%E3%80%82sorry-miss-postpls-removethanks/#findComment-390579 Share on other sites More sharing options...
zgkhoo Posted November 13, 2007 Author Share Posted November 13, 2007 1 array[] =how many bit? Link to comment https://forums.phpfreaks.com/topic/77131-array-limit-in-php%E3%80%82%E3%80%82%E3%80%82sorry-miss-postpls-removethanks/#findComment-390588 Share on other sites More sharing options...
Orio Posted November 13, 2007 Share Posted November 13, 2007 The array size may vary when do specific actions on it. But the maximum size it can be depends on the amount of memory given to php in the memory_limit directive and by the data it contains- a 500 chars string for an example will take more place than an integer, so an array containing 500 chars strings will "eat" memory faster than the same array if it contained integers. Orio. Link to comment https://forums.phpfreaks.com/topic/77131-array-limit-in-php%E3%80%82%E3%80%82%E3%80%82sorry-miss-postpls-removethanks/#findComment-390623 Share on other sites More sharing options...
zgkhoo Posted November 13, 2007 Author Share Posted November 13, 2007 u estimate a 500char array use how much bit? Link to comment https://forums.phpfreaks.com/topic/77131-array-limit-in-php%E3%80%82%E3%80%82%E3%80%82sorry-miss-postpls-removethanks/#findComment-390635 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.