php - why some project use fetch_assoc instead of fetch_all in mysqli -


why project use fetch_assoc in while loop instead of fetch_all in php:mysqli?

they're identical when used in example, fetch_all wasn't available until php5.3. older code, using fetch_assoc option.

there bit of tradition here, since fetch_assoc mirrors how you'd write code using old mysql_ extension.

remember you'll have give fetch_all mysqli_assoc if want behave fetch_assoc.


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -