Hey list,

I'm writing my own class which extends upon the Memcached class

I'm a bit confused as to how the constructor works when extending a class.

class caching extends Memcached {
function __construct() {
echo "Caching Class Construct!";

For something like the above code, is the Memcached constructor
called? Or do I have to explicitly call it via parent::__construct()
within the caching class?


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to