summaryrefslogtreecommitdiff
path: root/test/scanners/php/namespaces.in.php
blob: ad6a1a1d84229151b566df6e83ef2aac4753ddc9 (plain)
1
2
3
4
5
6
7
8
9
<?php
namespace foo;
use blah\blah as foo;

$a = new my\name(); // instantiates "foo\my\name" class
foo\bar::name(); // calls static method "name" in class "blah\blah\bar"
my\bar(); // calls function "foo\my\bar"
$a = my\BAR; // sets $a to the value of constant "foo\my\BAR"
?>