2011-11-15 48 views

回答

0
$categories = $_GET['data']['categories']; 
foreach($categories as $array) { 
    foreach($array as $category) { 
     echo $category."<br/>"; 
    } 
} 

根據下面您的評論:

$categories = $_GET['data']['categories']; 
foreach($categories as $array) { 
    foreach($array as $category) { 
     $category = intval($category); // anty-injection, we assumed $category is a number 
     echo '<a href="domain.com?'.$category.'">Category #'.$category.'</a><br/>'; 
    } 
} 
+0

我需要把它包含在 chchrist

+0

請檢查我編輯的答案。 – Peter