php encode array as application/x-www-form-urlencoded code example
Example 1: php create url with query sting from array
<?php
$data = array(
'foo' => 'bar',
'baz' => 'boom',
'cow' => 'milk',
'php' => 'hypertext processor'
);
echo http_build_query($data) . "\n";
echo http_build_query($data, '', '&');
?>
Example 2: http_build_query
"No Access Token Generated Yet"