Bit long title, comes down to this:
<?php
class error
{
public function error($errormsg = false, $line = false)
{
echo 'errormsg: '.$errormsg.' on line: '.$line;
}
}
?>
When i call this class in another file, with for example:
<?php
$error = new error;
?>
It already executes the echo in the function 'error'. Does the function inherit the same behaviour as the __construct when its the same name, or did i just miss something really stupid (im a beginner ooper :) )
Tnx in advance