Code: Select all
class A{}
class B{
function a(\A $a) {
return $a;
}
}
$c=new A();
$d=new B();
print_r($d->a($c));(
)[/text]
What does the backslash \ do before the class type ?
I didn't found it on the PHP documentation
although I didn't find the syntax function:
Code: Select all
func_name(CLASS_NAME $prop){}