php org code example
Example 1: php
<?php
class BaseClass {
public function test() {
echo "BaseClass::test() called\n";
}
final public function moreTesting() {
echo "BaseClass::moreTesting() called\n";
}
}
class ChildClass extends BaseClass {
public function moreTesting() {
echo "ChildClass::moreTesting() called\n";
}
}
?>
Example 2: php
PHP is a general-purpose scripting language especially suited to
web development.
It was originally created by Danish-Canadian programmer
Rasmus Lerdorf in 1994;
the PHP reference implementation is now produced by The PHP Group
Implementation language: C (primarily; some components C++)