note 117556 added to mysqli.quickstart.dual-interface

From: Date: Mon, 29 Jun 2015 08:02:19 +0000
Subject: note 117556 added to mysqli.quickstart.dual-interface
Groups: php.notes 
Request: Send a blank email to php-notes+get-202986@lists.php.net to get a copy of this message
PHP developers don't really know what object orientation means. Else the above example #2 would be: $mysqli->query("SELECT 'choices to please everybody.' AS _msg FROM DUAL"); $row = $mysqli->fetch_assoc(); echo $row['_msg']; instead of: $res = $mysqli->query("SELECT 'choices to please everybody.' AS _msg FROM DUAL"); $row = $res->fetch_assoc(); echo $row['_msg']; Object orientation means objects beeing in a specific state instead of saving that state to local variables. ---- Server IP: 72.52.91.14 Probable Submitter: 188.107.88.225 ---- Manual Page -- http://php.net/manual/en/mysqli.quickstart.dual-interface.php Edit -- https://master.php.net/note/edit/117556 Del: integrated -- https://master.php.net/note/delete/117556/integrated Del: useless -- https://master.php.net/note/delete/117556/useless Del: bad code -- https://master.php.net/note/delete/117556/bad+code Del: spam -- https://master.php.net/note/delete/117556/spam Del: non-english -- https://master.php.net/note/delete/117556/non-english Del: in docs -- https://master.php.net/note/delete/117556/in+docs Del: other reasons-- https://master.php.net/note/delete/117556 Reject -- https://master.php.net/note/reject/117556 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202986) next »