Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do you hide arrays in the result?
    primarykey
    data
    text
    <p>How would I go about hiding these arrays in the result? Any help is GREATLY appreciated!!</p> <p>Below is what i currently have.. I don't want it to show this array mumbo-jumbo.</p> <p><a href="http://i.stack.imgur.com/wJUrx.png" rel="nofollow">http://i.stack.imgur.com/wJUrx.png</a></p> <p>Here is what I want the result to look like: <a href="http://i.stack.imgur.com/Ud1bn.png" rel="nofollow">http://i.stack.imgur.com/Ud1bn.png</a></p> <p>Here is the part of my index.php <pre><code>if(isset($_POST['url'])) { include('curl.php'); include('youtube.php'); $tube = new youtube(); $links = $tube-&gt;get($_POST['url']); if($links) { ?&gt; &lt;div id="result"&gt; &lt;b&gt;Download Links ( Same IP Downloading only )&lt;/b&gt; : &lt;pre&gt; &lt;?php print_r($links); ?&gt; &lt;/pre&gt; &lt;/div&gt; &lt;?php } else { echo $tube-&gt;error; } } ?&gt; &lt;/div&gt; </code></pre> <p>Here is the part of my youtube.php</p> <pre><code>$formats = array( '13'=&gt;array('3gp','Low Quality'), '17'=&gt;array('3gp','Medium Quality'), '36'=&gt;array('3gp','High Quality'), '5'=&gt;array('flv','Low Quality'), '6'=&gt;array('flv','Low Quality'), '34'=&gt;array('flv','High Quality (320p)'), '35'=&gt;array('flv','High Quality (480p)'), '18'=&gt;array('mp4','High Quality (480p)'), '22'=&gt;array('mp4','High Quality (720p)'), '37'=&gt;array('mp4','High Quality (1080p)'), ); foreach ($formats as $format =&gt; $meta) { if (isset($foundArray[$format])) { $videos[] = array('ext' =&gt; $meta[0], 'type' =&gt; $meta[1], 'url' =&gt; $foundArray[$format]); } } return $videos; </code></pre> <p>Thank you for any help (:</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload