That means using Fetch_object ().
Reply to discussion (solution)
There's a lot of reason.
1. Efficiency problem fetch_object Efficiency is the lowest you can refer to the image below the x axis is the number of data Y axis is the time spent
The operation of the 2.PHP array is particularly special and convenient for various arrays operation functions as for the object hehe
3.fetch_object data is not compliant with object-oriented thinking (because the member property is all public) and does not conform to process-oriented (because it is an object)
There's a lot of reason.
1. Efficiency problem fetch_object Efficiency is the lowest you can refer to the image below the x axis is the number of data Y axis is the time spent
The operation of the 2.PHP array is particularly special and convenient for various arrays operation functions as for the object hehe
3.fetch_object data is not compliant with object-oriented thinking (because the member property is all public) and does not conform to process-oriented (because it is an object)
As you say, it is a chicken!