note 118117 added to function.sqlsrv-connect

From: Date: Wed, 07 Oct 2015 03:16:06 +0000
Subject: note 118117 added to function.sqlsrv-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-203920@lists.php.net to get a copy of this message
As mentioned at https://msdn.microsoft.com/en-us/library/cc296193.aspx the connection will convert some data into PHP data types. Of particular difference to other database functions in PHP is that dates will be output as objects instead of strings. To make the sqlsrv_fetch_{array|object}() functions return dates/times/datetimes as strings instead, specify: 'ReturnDatesAsStrings' => true in the $connectionInfo array. For more info about this behaviour, see https://msdn.microsoft.com/en-us/library/ee376928.aspx ---- Server IP: 72.52.91.14 Probable Submitter: 131.203.245.222 ---- Manual Page -- http://php.net/manual/en/function.sqlsrv-connect.php Edit -- https://master.php.net/note/edit/118117 Del: integrated -- https://master.php.net/note/delete/118117/integrated Del: useless -- https://master.php.net/note/delete/118117/useless Del: bad code -- https://master.php.net/note/delete/118117/bad+code Del: spam -- https://master.php.net/note/delete/118117/spam Del: non-english -- https://master.php.net/note/delete/118117/non-english Del: in docs -- https://master.php.net/note/delete/118117/in+docs Del: other reasons-- https://master.php.net/note/delete/118117 Reject -- https://master.php.net/note/reject/118117 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#203920) next »