Re: PHP 4 OOP, re-using a object?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Micky Hulse wrote:
Hi,

I am slowly learning how to use classes properly... quick question:

# Create the object:
$doSplash = new RandomSplash(); // Create the object.

Shouldn't I be able to call that object like below, throughout my page:

...HTML...
<?php $doSplash->randomize('css'); ?>
...HTML...
<?php $doSplash->randomize('xhtml top'); ?>
...HTML...
<?php $doSplash->randomize('xhtml bot'); ?>
...HTML...

Sorry, this is probably a noob question... I am pretty good at using functions, but classes are still new to me.

Any help, even a RTFM link, would be really appreciated. :)

Have a great day!
Cheers,
Micky

you should be able to, and it works fine for me. www.php.net/oop will help, if you haven't read it.

- tul

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux