use strict?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • p cooper

    use strict?

    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

    #2
    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/

    Comment

    Working...