- file_get_contents: documentation ( source)
- http_build_query: documentation ( source)
<?php
$base = 'http://music.example.org/search.php';
$params = array('composer' => 'beethoven',
'instrument' => 'cello');
$url = $base . '?' . http_build_query($params);
$response = file_get_contents($url);