Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php call method from another class

$classA = new ClassA();
$name = $classA->getName();
echo $name;    //Prints John
 
PREVIOUS NEXT
Tagged: #php #call #method #class
ADD COMMENT
Topic
Name
5+9 =