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 ? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
zgkhoo Posted November 13, 2007 Author Share Posted November 13, 2007 1 array[] =how many bit? Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.