You are here: Re: Object to array « PHP Programming Language « IT news, forums, messages
Re: Object to array

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация