what exactly do namespaces do , i can sorta see whats its doin and this is what i want !!
<?php define('NUM', 10); try { if (NUM < 20) { throw new Exception( NUM . " is too small!" ); } } catch (Exception $e) { echo $e->getMessage(); echo "\n<br />\n"; } ?> function __construct() { echo "peel..peel.."; echo "\n<br />\n"; } cool when is this actually used ? function __destruct() { echo "slip... crack!"; echo "\n<br />\n"; } yep this is cool i've already tested it out and it works , but what is the whole point of private and protected again ? i've been reading the java intro on the sun site and it goes into detail about it http://ny1.php.net/talks/show.php/php5intro/13 hmm i soughta found php4 cant do this function add_agent($name) { array_push($this->agents, $name); } } class cia_administration extends cia { function __construct() { $this->add_agent('Sterling'); $this->add_agent('Zeev'); $this->add_agent('Andi'); $this->add_agent('Rasmus'); $this->add_agent('Thies'); } } i had to call the parent class constructor into the base constructor first to use its functions ?>? i dont get this http://ny1.php.net/talks/show.php/php5intro/25 wots the point of this ? http://ny1.php.net/talks/show.php/php5intro/28 ahh my brain hurts i got lost after this but i am so excited , i have 5 running i should start doing some OO experiments. -----Original Message----- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Saturday, April 05, 2003 1:10 AM To: John Coggeshall Cc: 'Dan Rossi'; 'Php-General' Subject: Re: [PHP] php5 writeup Yes, I got that, the correct link is http://ny1.php.net/talks/show.php/php5intro - it runs on php5 ;-) John Coggeshall wrote: >>Parse error: parse error in >>/local/Web/sites/talks/presentations/slides/php5intro/namespace.php on >>line 2* >> >>*Is this how it should work? ;-)* >> >> > >In Sterling's Defense, the server running this code isn't PHP5 :) Hence, >some of the examples don't work. > >John > > >-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~- >John Coggeshall >john at coggeshall dot org http://www.coggeshall.org/ >-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~- > > > > >>-----Original Message----- >>From: Marek Kilimajer [mailto:[EMAIL PROTECTED] >>Sent: Friday, April 04, 2003 8:48 AM >>To: Dan Rossi >>Cc: Php-General >>Subject: Re: [PHP] php5 writeup >> >> >>http://talks.php.net/show/php5intro/3 : >> >>Parse error: parse error in >>/local/Web/sites/talks/presentations/slides/php5intro/namespace.php on >>line 2* >> >>*Is this how it should work? ;-)* >>* >>Dan Rossi wrote: >> >> >> >>>just found this http://talks.php.net/show.php/php5intro/ >>> >>> >>> >>> >>> >>-- >>PHP General Mailing List (http://www.php.net/) >>To unsubscribe, visit: http://www.php.net/unsub.php >> >> >> >> > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php