I have URL like this, how we recive the value
like "abc.org/result.php?rq=[1,2,3,4]&rq1=[5]
" etc
Can any one help me to convert rq into array
when recive the value in result.php
I have URL like this, how we recive the value
like "abc.org/result.php?rq=[1,2,3,4]&rq1=[5]
" etc
Can any one help me to convert rq into array
when recive the value in result.php
You can try using explode()
& array_map()
$rq = $_GET['rq'];
$arr = array_map(function($v){ return trim($v, ' []');}, explode(',', $rq));
print '<pre>';
print_r($arr);
print '</pre>';