difference between fetch assoc and fetch array or object php

Solutions on MaxInterview for difference between fetch assoc and fetch array or object php by the best coders in the world

showing results for - "difference between fetch assoc and fetch array or object php"
Nina
27 Mar 2019
1mysql_fetch_assoc
2	The function returns an associative array of strings that corresponds
3	to the fetched row, or FALSE if there are no more rows.
4	The associativity array tells us about the key value pair,
5	whereas the key tells about any column name and the value tells 
6	about the row value.
7
8	Here we can map the column name as key and value as row. For example.
9	Key is ID and value is corresponding name.
10
11mysql_fetch_array
12
13  This function name suggests that it returns an array.
14  It fetches a result row as an associative array, a 
15  numeric array, or both. It has both numeric values as 
16  well as string values for a key.
17
18mysql_fetch_object
19This function returns row as an object and does not return an array.
20    
21