Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php extend class

<?php
class A {
        // more code here
}
 
class B extends A {
        // more code here
}
 
class C extends B {
        // more code here
}
 
 
$someObj = new A();  // no problems
$someOtherObj = new B(); // no problems
$lastObj = new C(); // still no problems
 
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #extend #class
ADD COMMENT
Topic
Name
1+4 =