php array through url
php array through url
- Started
- Last post
- 1 Response
- Engage_London
Anyone any links on how to parse an array through a url using php... and how to split it up?
- enobrev0
the url should look like this:
page.php?myarray[]=item1&myarray...
then on page.php, you'll have an array in your $_GET superglobal that is the equivalent to this:
$_GET['myarray'][0] = 'item1';
$_GET['myarray'][1] = 'item2';
$_GET['myarray'][2] = 'item3';