I have a problem in comparing a string of single word to another string within a sentence or phrase.I want to get the whole string from address if the value $Cebu have match the same word from the value of $address. My aim is if there is an exact match the return is true else false. Anyone who can help me is much appreciated.
public function address(){
$Cebu = 'Cebu';
$lt = '10.2638281';
$lg = '123.60638549999999';
$str = $lt.','.$lg;
$url = 'http://ift.tt/WJEHSa'.trim($lt).','.trim($lg).'&sensor=false';
$json = @file_get_contents($url);
$data=json_decode($json);
$status = $data->status;
$address = $data->results[0]->formatted_address;
//Pinamungahan, Cebu, Philippines
}
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2lbj9PQ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire