Page 1 of 1

Is a copy of the data stored in a SQL query array made?

Posted: Thu Jul 29, 2010 8:28 pm
by Reloaded
So i was having problems with my script and it worked when i put the query into the FOR loop, i had only put the variable that contained "fetch_assoc()" in the FOR loop. I was wondering when you make a query and store the results in the array, then you echo all the results out does PHP make copies of the data or does it echo the data out then delete it from the arary?

Re: Is a copy of the data stored in a SQL query array made?

Posted: Thu Jul 29, 2010 10:34 pm
by s.dot
echo will just print it
the array still remains intact.. until the end of the php script