Other than those described by http://php.net/manual/en/reserved.keywords.php, are there any method names I shouldn't use? For instance, can I make a method public function echo($x)
and use it as $this->echo('Hello');
?
EDIT> Evidently, I can't use echo
because it is a language constructs, but could use min
. Following doesn't result in an error.
<?php
class myClass {
public function min($x){echo(min($x));}
}
$obj=new myClass();
$obj->min(array(5,3,6,3));
?>