note 128928 added to mysqli-result.fetch-all

From: Date: Tue, 03 Oct 2023 01:15:48 +0000
Subject: note 128928 added to mysqli-result.fetch-all
Groups: php.notes 
Request: Send a blank email to php-notes+get-220887@lists.php.net to get a copy of this message
be careful fetch_all(MYSQLI_ASSOC ) returns an array in the form <?php array(0 => array(...row...), 1 => array(...row...) .... ), even if is one row... ?> not compared to fetch_assoc() which returns one array of the result in form: <?php array(...row...) ?> ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.157.134 (proxied: 213.216.124.73) ---- Manual Page -- https://php.net/manual/en/mysqli-result.fetch-all.php Edit -- https://main.php.net/note/edit/128928 Del: integrated -- https://main.php.net/note/delete/128928/integrated Del: useless -- https://main.php.net/note/delete/128928/useless Del: bad code -- https://main.php.net/note/delete/128928/bad+code Del: spam -- https://main.php.net/note/delete/128928/spam Del: non-english -- https://main.php.net/note/delete/128928/non-english Del: in docs -- https://main.php.net/note/delete/128928/in+docs Del: other reasons-- https://main.php.net/note/delete/128928 Reject -- https://main.php.net/note/reject/128928 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220887) next »