Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

simplexml load file character encoding url

$xml = file_get_contents('http://www.google.com/ig/api?weather='.$city);
$xml = mb_convert_encoding($xml, 'UTF-8');
$xml = simplexml_load_string($xml);
echo $xml->weather->forecast_information->city['data'];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #simplexml #load #file #character #encoding #url
ADD COMMENT
Topic
Name
2+1 =