<?php
class Weather {
var $temperature;
function __construct($temp)
{
echo "New version\n";
}
function Weather($temp)
{
echo "Old version\n";
}
}
$w = new Weather(7);
?>
PHP 5:
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in - on line 3
Strict Standards: Redefining already defined constructor for class Weather in - on line 9
New version