Voting

: max(zero, seven)?
(Example: nine)

The Note You're Voting On

ovidiu.bute [at] gmail.com
15 years ago
If you are using namespaces this function will return the name of the class including the namespace, so watch out if your code does any checks for this. Ex:

namespace Shop;

<?php
class Foo
{
public function
__construct()
{
echo
"Foo";
}
}

//Different file

include('inc/Shop.class.php');

$test = new Shop\Foo();
echo
get_class($test);//returns Shop\Foo
?>

<< Back to user notes page

To Top