我给你一些你想用的解决方案。
使用plushttp://myexamplesite.com/store/?brand=nike+adidas+woodland
//Don\'t decode URL
  <?php
    $brand = get_query_var(\'brand\');
    $brand = explode(\'+\',$brand);
    print_r($brand);
  ?>
 使用,分隔符
http://myexamplesite.com/store/?brand=nike,adidas,woodland$brand = get_query_var(\'brand\');
$brand = explode(\',\',$brand);
print_r($brand);
 序列化方式
<?php $array = array(\'nike\',\'adidas\',\'woodland\');?>
http://myexamplesite.com/store/?brand=<?php echo serialize($array)?>
to get url data
$array= unserialize($_GET[\'var\']);
or $array= unserialize(get_query_var(\'brand\'));
print_r($array);
 json方式
<?php $array = array(\'nike\',\'adidas\',\'woodland\');
  $tags = base64_encode(json_encode($array));
?>
http://myexamplesite.com/store/?brand=<?php echo $tags;?>
<?php $json = json_decode(base64_decode($tags))?>
<?php print_r($json);?>
 使用-方式
我建议使用mod\\u rewritehttp://myexamplesite.com/store/brand/nike-adidas-woodland 或者如果只想使用phphttp://myexamplesite.com/store/?brand=tags=nike-adidas-woodland. 使用“-”可以使其对搜索引擎友好。
<?php
    $brand = get_query_var(\'brand\');
    $brand = explode(\'-\',$brand);
    print_r($brand);
?>
 在任何情况下,你都会得到相同的结果
    Array
    (
        [0] => nike
        [1] => adidas
        [2] => woodland
    )