Reputation: 373
Am trying to fetch an array from url via get request but am unable to do that
This is my URL with values encoded
http://example.com/q.php?sub[]=xyz&sub[]=wsq
this is how am trying to store the values in another array
$sub= array();
$sub[]= $_GET['sub[]'];
Am not getting any result but if I run my page by manually initializing the array am getting the desired result without any issue
Upvotes: 0
Views: 138