Answers for "php array to query string using array map"

PHP
0

php array to query string using array map

<?php
$data = array(
    'foo' => 'bar',
    'baz' => 'boom',
    'cow' => 'milk',
    'null' => null,
    'php' => 'hypertext processor'
);

echo http_build_query($data) . "\n";
echo http_build_query($data, '', '&');

?>
Posted by: Guest on September-25-2021

Browse Popular Code Answers by Language