Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getContent($url, $data){
- $data = $data[0];
- $params = "";
- foreach ($data as $key => $value) {
- $glue = empty($params) ? '?' : '&';
- $params .= $glue . $key . '=' . $value;
- }
- print_r( file_get_contents($url . $params) );
- }
- getContent("http://api.varionity.cz/coins.php", array(["typ" => "one", "nick" => "Whistik", "token" => "27NdNVD9H8"]));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement