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

Posted by Bart the bear on 08/08/07 09:24

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?

 

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

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