how to send array through url in PHP?
I have an array of product ids i want to use these id through url because this is the osCommerce needs it in which i am working
You can either serialize() it or send it as ?a[]=1&a[]=val2&someOtherArg=val. This will give a $_GET array like:
?a[]=1&a[]=val2&someOtherArg=val
$_GET
array( 'a' => array( 0 => '1', 1 => 'val2', ), 'someOtherArg' => 'val' )
Do note, however, that you should probably keep your entire query below ~2k characters. (more)