dsbowmvth16379079 2014-11-11 20:09
浏览 22
已采纳

如何分隔值$ _GET

I have a problem with getting one value. I'm calling my script with:

xxx.php?action=activate&timestamp=1415550311&gate=smscz&pricing=czchest1
&sum=29.00&currency=czk&days=0&identifiers%5Bglobal%5D%5Btext%5D=NomisCZ&key=czchest1`

$action = $_GET['action'];
$pricing = $_GET['pricing'];

etc.

but I have problem with getting value &identifiers. I need only value NomisCZ from this &identifiers%5Bglobal%5D%5Btext%5D=NomisCZ.

  • 写回答

1条回答 默认 最新

  • duanliujie8639 2014-11-11 20:17
    关注

    What you have in your request, url decoded

    identifiers[global][text]=NomisCZ&key=czchest1
    

    To access NomisCZ use this

    $_GET['identifiers']['global']['text'];
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?