|
Posted by ELINTPimp on 08/08/07 10:16
On Aug 8, 5:24 am, Bart the bear <barttheb...@gmail.com> wrote:
> Is there a smarter way for this:
> $line_elems=array($new->machine,
> $new->channel,
> $new->time,
> $new->bday,
> $new->eday,
> $new->name);
> $line = join(':',$line_elems);
> $line="$line\n";
>
> Is there a function (cast?) to convert object to an array without
> listing all the
> members?
get_object_vars
http://phpbuilder.com/manual/en/function.get-object-vars.php
[Back to original message]
|