All you need is http_build_query:
$final = $url . "?" . http_build_query($subids);
More Related Contents:
- how can I print multiple services in this way
- Prevent creating duplicate entries in PHP
- Display multidimensional array in php
- Sum up array values [closed]
- Remove Duplicates in array php
- Is there any array function by which I can get the expected result? [duplicate]
- Convert php array to Javascript
- PHP Sort a multidimensional array by element containing Y-m-d H:i:s date
- PHP in_array() / array_search() odd behaviour
- How to bind mysqli bind_param arguments dynamically in PHP?
- How to check whether an array is empty using PHP?
- php multi-dimensional array remove duplicate [duplicate]
- How is the PHP array implemented on the C level?
- Convert array of single-element arrays to one a dimensional array
- PHP list all files in directory [duplicate]
- PHP – Merging two arrays into one array (also Remove Duplicates)
- Convert flat array to a delimited string to be saved in the database
- Group array data on one column and sum data from another column
- PHP Random Shuffle Array Maintaining Key => Value
- Check if specific array key exists in multidimensional array – PHP
- Make var_dump look pretty [duplicate]
- PHP – Merge two arrays (same-length) into one associative?
- Merge row data from multiple arrays
- PHP foreach loop through multidimensional array [duplicate]
- Count “truthy” values in a 2d array
- Recursively sort keys of a multidimensional array
- php copying array elements by value, not by reference
- Remove zero values from a PHP array
- Convert PostgreSQL array to PHP array
- PHP: Most frequent value in array