FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » json_decode problem
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: json_decode problem [message #178842 is a reply to message #178838] Sat, 11 August 2012 11:09 Go to previous messageGo to previous message
houghi is currently offline  houghi
Messages: 45
Registered: September 2011
Karma:
Member
Gregor Kofler wrote:
>> I do get the above part right, but I am lost on how to do the rest. I assume I
>> must do some other foreach.
>
> foreach($p->lines as $l) {
> echo $l->stage;
>
> if(isset($l->quote)) {
> echo $l->quote;
> }
>
> if(isset($l->chars) {
> foreach($l->chars as $c) {
> echo $c->char;
> echo $c->nconst;
> }
> }
>
> ....
> }

Thanks.

>
>> No idea where to start, even after many days
>> and websites.
>
> And never heard of var_dump()?

Yes and I used it, but unfortunatly the outcome is meaningless to me.
Searching google is also very hard if you have no idea what you should
enter in the search. :-(

The sites I found that explained with examples (as that is the best way
I can learn) did not go into enough detail and were very basic.

houghi
--
This is written under the inluence of the following:
> Artist : James Brown
> Song : Instrumental Bridge 2
> Album : Live At The Apollo
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PEAR Auth package woes
Next Topic: redirect on zend
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 09:32:51 GMT 2024

Total time taken to generate the page: 0.04458 seconds