I was reading through the PHP manual and got to the section on constructors.
class A {
function A() {
echo "I am the constructor of A.\n";
}
function B() {
echo "I am a regular function named B in class A.\n";
echo "I am not a constructor in A.\n";
}
}
class B extends A {
I was reading through the PHP manual and got to the section on constructors.
class A {
function A() {
echo "I am the constructor of A.\n";
}
function B() {
echo "I am a regular function named B in class A.\n";
echo "I am not a constructor in A.\n";
}
}
class B extends A {
2 matches
Mail list logo