You are here: Re: [PHP] parse string « PHP « IT news, forums, messages
Re: [PHP] parse string

Posted by "Ron Eggler (Paykiosks)" on 01/20/06 00:56

Am Donnerstag, den 19.01.2006, 16:42 -0600 schrieb Richard Lynch:
> Grrrr. I forgot PHP Object printing was so primitive, even under
> var_dump. :-(
>
> function walkout($object, $indent = 0){
> if (is_object($object) or is_array($object)){
> foreach($object as $k => $v){
> echo str_repeat(' ', $indent), $k, ' => ';
> walkout($v, $indent + 1);
> }
> }
> else echo $v, "<br />\n";
> }
>
> echo "<pre>";
> walkout($xml);
> echo "</pre>";
yes, and now? it just prints every subject like:

SKUlisting =>

globalInfo =>

carrierInfo =>

carrierInfo =>

carrierInfo =>

carrierInfo =>

carrierInfo =>

carrierInfo =>

carrierInfo =>

carrierInfo =>

carrierInfo =>

carrierInfo =>

carrierInfo =>

carrierInfo =>

carrierInfo =>

carrierInfo =>

carrierInfo =>

cardSKU =>

card =>

cinfo =>

changed the function a bit [just inserted <br>]
I have no idea yet, how I'm gonna reach my goal... :(
__________________________________________

Ron Eggler
Intern
866-999-4179
www.paykiosks.net

 

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

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