|
Posted by micah on 09/29/98 12:00
try using this a generic object:
$obj = new stdClass();
On Jan 15, 6:14 pm, KDawg44 <KDaw...@gmail.com> wrote:
> Hi,
>
> I would like to have a function that takes a generic object and takes
> some action on this. Something like,
>
> function AMethod(Object obj) {
> DoSomeStufftotheObject;
>
> }
>
> then be able to pass various object types in. Is there a way to do
> this in PHP? Do classes automatically inherit from a generic Object
> like in Java?
>
> Thanks.
Navigation:
[Reply to this message]
|