Dave's Brain

Browse - Programming Tips - Is there a strict mode for php?

Date: 2017apr27
Language: php

Q.  Is there a strict mode for php?

A. You can do this:

I like to do this in all my php programs:
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_STRICT);

Add a comment

Sign in to add a comment
Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.