php5: is oop obligatory?

Hi all,
I was wondering, if

  1. I activate all errors except notices:
    [php]error_reporting(E_ALL & ~E_NOTICE);
    ini_set(‘display_errors’, 1);[/php]
  2. my environment is php5.5
  3. I get no errors

Is my code then php5?

I do not use any OOP, do I have to, to use php5?
regards, Mary.

Pho is both. I haven’t seen anything that has stated procedurally is not being supported.

Hi Mary,
Yes, your code is php5.5 compatible. For development, you should enable ALL errror and notices

error_reporting(E_ALL|E_STRICT); ini_set('display_errors', '1');

You can use oop or procedural. your choice.

Sponsor our Newsletter | Privacy Policy | Terms of Service