1) result_array (): return a multidimensional array.
2) row_array (): returns a one-dimensional associative array
So, if you display structured information about each of them, you will get something similar to the following:
echo var_dump(result_array());
Output:
array (1) {[0] => array (4) {["id"] => string (1) "1" ["title"] => string (12) "News name 1" ["slug"] => string (5) "slug1" ["text"] => string (57) "In the name of Allah, this is the first description of the news"}}
echo var_dump(row_array());
Output:
array (4) {["id"] => string (1) "1" ["title"] => string (12) "News headline 1" ["slug"] => string (5) "slug1" [ "text"] => string (10) "description"}
source share