Re: Wierd ass code...
| From: | Richard Lynch | Date: | Tue, 16 May 2006 00:40:04 +0000 |
| Subject: | Re: Wierd ass code... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236248@lists.php.net to get a copy of this message | ||
On Sat, May 13, 2006 6:37 pm, Rory Browne wrote:
> There are some cases where the Error Suppression operator may be
> useful in
> good code.
Last I checked, you pretty much HAD to use it for pg_fetch_row() since
it does an E_NOTICE when you try to fetch a row beyind the number
available...
You could use pg_num_rows() but that was slower, since the number of
rows would not necassarily be readily available, as I understand it.
Never did understand why that would do that. [shrug]
Things may well have changed since I looked into this almost a decade
ago...
--
Like Music?
http://l-i-e.com/artists.htm