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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -