Jump to content

Retrieve Arrays from URL


The14thGOD

Recommended Posts

Hey, I was wondering, how would you go about getting an array form the URL?

 

can you just post it like this "domain.com/index.php?array=1,2,3,4

 

and then use:

<?php
$array = $_GET['array'];

 

and then the array would read as:

$array[0] == 1

$array[1] == 2

etc...

 

thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/44092-retrieve-arrays-from-url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.