Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP;

//From
public function TSStatus($host, $queryPort);

//to
public function __construct($host, $queryPort);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #PHP #Methods #class #constructors #future #version
ADD COMMENT
Topic
Name
1+1 =