note 70375 added to language.operators.errorcontrol

From: Date: Fri, 13 Oct 2006 13:38:31 +0000
Subject: note 70375 added to language.operators.errorcontrol
Groups: php.notes 
Request: Send a blank email to php-notes+get-118493@lists.php.net to get a copy of this message
To suppress errors for a new class/object: <?php // Tested: PHP 5.1.2 ~ 2006-10-13 // Typical Example $var = @some_function(); // Class/Object Example $var = @new some_class(); // Does NOT Work! //$var = new @some_class(); // syntax error ?> I found this most useful when connecting to a database, where i wanted to control the errors and warnings displayed to the client, while still using the class style of access. ---- Server IP: 66.163.161.117 Probable Submitter: 64.140.60.44 ---- Manual Page -- http://www.php.net/manual/en/language.operators.errorcontrol.php Edit -- https://master.php.net/note/edit/70375 Del: integrated -- https://master.php.net/note/delete/70375/integrated Del: useless -- https://master.php.net/note/delete/70375/useless Del: bad code -- https://master.php.net/note/delete/70375/bad+code Del: spam -- https://master.php.net/note/delete/70375/spam Del: non-english -- https://master.php.net/note/delete/70375/non-english Del: in docs -- https://master.php.net/note/delete/70375/in+docs Del: other reasons-- https://master.php.net/note/delete/70375 Reject -- https://master.php.net/note/reject/70375 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#118493) next »