Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (shaik0124):

If anyone want help in html css javascript php mysql jquery ajax json i can help u.Please feel free to contact me

OpenStudy (harsha19111999):

Hey I need some help with php and MySQL. I like to store database values in a php array. But I do not know the maximum size of an array which is allowed in PHP? I want to use this as a cache so that I need not access the database many times. And I have many rows in my database (say about 100000)

OpenStudy (shaik0124):

once u fetch the values usingwhile($fetch= mysqli_fetch_array()) u write the statement like this $namesarr=array($_fetch[column name]); all the values will be stored in the array name namesarr.

OpenStudy (harsha19111999):

Yes. That's correct. But can a php array store all those 100000 rows?

OpenStudy (harsha19111999):

I mean will the memory be sufficient or will it throw an exception? Is there any constraint for the memory of an array?

OpenStudy (shaik0124):

i think there should not be an exception try to store ur 10000 records in an arrayand print using var_dump($arrayname); u will get to know whether there is exception r not

OpenStudy (harsha19111999):

Okay. Will try it. Thanks

OpenStudy (shaik0124):

welcome

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!