php oop's archive
$this and php
Little mistake on naming variable make me confuse for almost an hour.
$this
yes, $this is built-in variable that often use in OOP. By using $this, we refer to self referencing variable.
More in php.net manual
<?php
class A
{
function foo()
{
if (isset($this)) {
echo ‘$this is defined (’;
echo get_class($this);
echo “)\n”;
} else {
echo “\$this is not defined.\n”;
}
}
}
class B
{
function bar()
{
A::foo();
}
}
$a = new A();
$a->foo();
A::foo();
$b = new B();
$b->bar();
B::bar();
?>
PHP OO tutorials
Best way to learn scripting / program is easy. Just write the code and see the result.
With the progress of OOP approach in field recently for our team make its ‘hard’ to adapt such change in mindset :
Procedural vs Object Oriented Programming
With case codeiginter, we must learn the basic of OOP in PHP. Starting by [...]
- Top Forum Posters Required by ahmansoor
- Project for Edmund by DorisC
- Nonpublic project #328415 by slipp
- Oscommerce small CCGV +Affiliate fix by fullecommerce1
- Banners design for a website, splash page presentation and sell page design by bullco
- Project for BeiManiago #2 by uchoa55
- Nonpublic project #328412 by bunnyg
- Number of small changes to 2 websites - pls read details by sanet
- Need quick fix for OSC site by flyhead64
- Project For "creator115". by sunconsultancy1

