Connecting Tech Pros Worldwide Forums | Help | Site Map

use strict?

p cooper
Guest
 
Posts: n/a
#1: Jul 17 '05
having spent several hours and having to redo a load of data because of a
careless typo that i didnt spot, is there a PHP equivalent of the perl

use strict
to prevent bozos like me wasting time?


Ewoud Dronkert
Guest
 
Posts: n/a
#2: Jul 17 '05

re: use strict?


On Fri, 17 Jun 2005 08:58:18 GMT, p cooper wrote:[color=blue]
> is there a PHP equivalent of the perl
> use strict
> to prevent bozos like me wasting time?[/color]

Not exactly, but there's

error_reporting( E_ALL | E_STRICT );

E_STRICT was added in PHP5. See http://php.net/error-reporting (and
ini-setting display_errors).


--
Firefox Web Browser - Rediscover the web - http://getffox.com/
Thunderbird E-mail and Newsgroups - http://gettbird.com/
Closed Thread