我将如何在结果中隐藏这些数组?任何帮助是极大的赞赏!!
以下是我目前拥有的.. 我不希望它显示这个数组 mumbo-jumbo。
http://i.stack.imgur.com/wJUrx.png
这是我希望结果的样子:http: //i.stack.imgur.com/Ud1bn.png
这是我的 index.php 的一部分
if(isset($_POST['url']))
{
include('curl.php');
include('youtube.php');
$tube = new youtube();
$links = $tube->get($_POST['url']);
if($links) { ?>
<div id="result">
<b>Download Links ( Same IP Downloading only )</b> :
<pre>
<?php
print_r($links);
?>
</pre>
</div>
<?php } else {
echo $tube->error;
}
}
?>
</div>
这是我的 youtube.php 的一部分
$formats = array(
'13'=>array('3gp','Low Quality'),
'17'=>array('3gp','Medium Quality'),
'36'=>array('3gp','High Quality'),
'5'=>array('flv','Low Quality'),
'6'=>array('flv','Low Quality'),
'34'=>array('flv','High Quality (320p)'),
'35'=>array('flv','High Quality (480p)'),
'18'=>array('mp4','High Quality (480p)'),
'22'=>array('mp4','High Quality (720p)'),
'37'=>array('mp4','High Quality (1080p)'),
);
foreach ($formats as $format => $meta) {
if (isset($foundArray[$format])) {
$videos[] = array('ext' => $meta[0], 'type' => $meta[1], 'url' => $foundArray[$format]);
}
}
return $videos;
感谢您的任何帮助 (: