note 22734 deleted from function.trigger-error by nlopess
| From: | nlopess@php.net | Date: | Sat, 03 Apr 2004 19:10:14 +0000 |
| Subject: | note 22734 deleted from function.trigger-error by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-67590@lists.php.net to get a copy of this message | ||
Note Submitter:
----
I would use this a lot more if PHP had macros. I want to keep my code simple.
Error("bad thing");
not
trigger_error("bad thing", E_USER_ERROR);
You can't place it in a function, because then the file & line aren't accurate.