Echo can you hear me?
<p>Why is showphp_Smartfm()  Not echoing at all.</p>

<pre><code>  foreach($response-&gt;quizzes as $quiz)
        {
          echo $quiz-&gt;question; // not echoing
          echo $quiz-&gt;answer; // not echoing
        }
</code></pre>

<p>Followup Question to <a href="http://stackoverflow.com/questions/2116963/navigating-objects-and-arrays">http://stackoverflow.com/questions/2116963/navigating-objects-and-arrays</a>
http://github.com/klanestro/Vortoj</p>

<pre><code>&lt;html&gt;
&lt;body&gt;

&lt;?php
// Created by Talisman 01/2010 ★✩ 

$vorto = $_GET['vorto']; // Get the Word from Outer Space and Search for it!




if (isset($vorto))
    {
    echo " Your Direct search was " . $vorto .  ' &lt;br&gt;&lt;/br&gt; '; 
    } else {
        $Help = "No Vorto -&gt; add ?vorto=TheWordYouWant to the end of this website";
        echo $Help;
    }



// Now Lets Search Alex's Vortaro, It uses jsonp
//  ex. http://vortaro.us.to/ajax/epo/eng/petas/?callback=?

/* Future Feature inproved language functinality */

// I used the capital AV to denote variables belonging to Alex's Vortaro
// #Plans for ( traduku.net, tn
//              :apertium.org,ap // I think its apertium.org
//              :reto-vartaro,rv 
//                      each root word has an xml file,  but how to you find this xml file?
//                      there is a xml link on the bottom of a search result,  but I can't figure 
//                      out a way to get to this info.
//              :project gutenburg, pg
//              :google books, gb
//  BUT NEXT UP ЄЭ smart.fm  
// it also assumes epo-eng

function getphp_AlexVortaro ($vorto)
    {
        $AVurl1 = "http://vortaro.us.to/ajax/epo/eng/"; 
        $AVurl2 = "/?callback=";
        $AVfinalurl= $AVurl1 . $vorto . $AVurl2;


        $AVcontent = file_get_contents($AVfinalurl) ;

        // Now we need to trim the () jsonp to json
        $AVcontent = substr($AVcontent, 1);
        $AVcontent = substr($AVcontent,0,-1);

        $AVDecode = json_decode($AVcontent);

        return ($AVDecode);
    }


function getphp_Smartfm($vorto)
    {
        $SFurl="http://api.smart.fm/items/matching/";
        // $SFurl2=urlencode($vorto); // +".json";
        $SFurl3="?language=eo&amp;translation_language=en";
        $SFfinalurl = $SFurl . $vorto . ".json" . $SFurl3;  // you can change .json to .xml

        $SFcontent = file_get_contents($SFfinalurl);
        $SFDecode = json_decode($SFcontent);

        return ($SFDecode);
    }


$AVvorto = getphp_AlexVortaro ($vorto);
$SFvorto = getphp_Smartfm($vorto);



function showphp_AlexVortaro ($AVvorto)
    {
    $AVvortoshow = $AVvorto-&gt;text;
    echo $AVvortoshow;

    }

showphp_AlexVortaro ($AVvorto);



function showphp_Smartfm($SFvorto)
{
   // $objects is the array with all those objects
foreach($SFvorto as $object)
{
  echo $object-&gt;cue-&gt;language; // language

  foreach($object-&gt;responses as $response)
  {
    // if there are no quizzes, we skip the part below
    // we skip it because $object-&gt;quizzes will produce a warning or a notice
    // if "quizess" is not a member of the $object
    if(!isset($object-&gt;quizzes))
    {
      continue;
    }

    // quizess
    foreach($response-&gt;quizzes as $quiz)
    {
      echo $quiz-&gt;question; // question
      echo $quiz-&gt;answer; // answer
    }
  }
}


}

showphp_Smartfm($SFvorto);

?&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
