If anyone want help in html css javascript php mysql jquery ajax json i can help u.Please feel free to contact me
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)
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.
Yes. That's correct. But can a php array store all those 100000 rows?
I mean will the memory be sufficient or will it throw an exception? Is there any constraint for the memory of an array?
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
Okay. Will try it. Thanks
welcome
Join our real-time social learning platform and learn together with your friends!