Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php file get content replacing & with &

$myUrl = 'https://www.myurl.com?';
$myArray = [
    'foo' => 'fooString',
    'bar' => 'barString'
];
$myUrl .= http_build_query($myArray,'','&'); // https://www.myurl.com?foo=fooString&bar=barString
$myData = file_get_contents($myUrl);
 
PREVIOUS NEXT
Tagged: #php #file #content #replacing
ADD COMMENT
Topic
Name
8+5 =