Posts: 6
Threads: 3
Joined: Apr 2015
Reputation:
0
Well, first and foremost , it's your personal choice if you are building app yourself.
Here is a scenario!
Let's suppose you are using some API which requires data in array or object? You will find these functions very useful.
Posts: 40
Threads: 14
Joined: Feb 2015
Reputation:
1
Use result_array() for better performance. Array is faster than object. I benchmarked two method and got result() execution time is bigger than result_array()
The largest Bengali tutorial site on Web Development in this planet
Posts: 5
Threads: 3
Joined: Dec 2019
Reputation:
0
i read all comments and none give the exact difference between them.
result() it hold object and cant process more data lets say 37k data but result_array() easily it can. the merrory allocation depend on the server configuration. So remember it.