WEB DEVELOPER SITE
PYTHON
 

PHP 7 Deprecated Features





In this last lesson we discuss PHP 7 - Deprecated Features.


Static calls to non-static methods

Static calls to non-static methods are deprecated


<?php
   class Z {
      function Y() {
         print('Static calls to non-static methods');
      }
   }
   Z::Y();
?>






result
Static calls to non-static methods