 mysqli_query($connect, "select address from ordertracker");

                if (!$ordertracker)
                {
                    echo "Error fetching results: ". mysqli_error();

                }

        $address=array();
        while($row = mysqli_fetch_assoc($ordertracker)) {
             $address= $row['address'];
              geocode($address);  
        }
    function geocode($address)
     {
                $address = urlencode($address);
                $url = "http://maps.googleapis.com/maps/api/geocode/json?address=$address&sensor=false";
                $geocode=file_get_contents($url);
                $output= json_decode($geocode);
                $lat = $output->results[0]->geometry->location->lat;
                $long = $output->results[0]->geometry->location->lng;
                $coordinate = "[". $lat. ",". $long. "]";  
                var_export($coordinate);  
      }
   ?>

A:

If you want an array, then you should not use string literals and concatenation to build it, as that will result in a string.
Instead let your function result an array with two values (latitude and longitude) and append those pairs to your main array in your main loop:
$address = [];
while($row = mysqli_fetch_assoc($ordertracker)) {
    $address[] = geocode($row['address']);
}
print_r($address);

function geocode($address) {
    $address = urlencode($address);
    $url = "http://maps.googleapis.com/maps/api/geocode/json?address=$address&sensor=false";
    $geocode = file_get_contents($url);
    $output= json_decode($geocode);
    $lat = $output->results[0]->geometry->location->lat;
    $long = $output->results[0]->geometry->location->lng;
    $coordinate = [$lat, $long];  
    return $coordinate;
}

 Q:

echo php variable and html in Wordpress

I
mysqli_query($connect, " select address from ordertracker "); 

                 if (! $ ordertracker) 
                 { 
                     echo " Error fetching result: ". mysqli_error (); 

                 } 

         $ savoir-faire = array (); 
         while($row = mysqli_fetch_assoc($ordertracker) ) { 
              $ address= $ row['address' ]; 
               geocode($address);  
         } 
     function geocode($address) 
      { 
                 $ address = urlencode($address); 
                 $ url = " http://maps.googleapis.com/maps/api/geocode/json?address=$address&sensor=false "; 
                 $ geocode = file_get_contents($url); 
                 $ output= json_decode($geocode); 
                 $ latissimus dorsi = $ output->results[0]->geometry->location->lat; 
                 $ long = $ output->results[0]->geometry->location->lng; 
                 $ coordinate = " [ ". $ lat. ", ". $ long. " ] ";  
                 var_export($coordinate);  
       } 
   ? > 

 A: 

 If you desire an array, then you should not use string misprint and concatenation to build it, as that will result in a bowed stringed instrument. 
 Instead let your routine result an array with two values (latitude and longitude) and add those pairs to your main array in your main loop: 
 $ address = [ ]; 
 while($row = mysqli_fetch_assoc($ordertracker) ) { 
     $ address [ ] = geocode($row['address' ]); 
 } 
 print_r($address); 

 function geocode($address) { 
     $ savoir-faire = urlencode($address); 
     $ url = " http://maps.googleapis.com/maps/api/geocode/json?address=$address&sensor=false "; 
     $ geocode = file_get_contents($url); 
     $ output= json_decode($geocode); 
     $ lat = $ output->results[0]->geometry->location->lat; 
     $ long = $ output->results[0]->geometry->location->lng; 
     $ coordinate = [ $ lat, $ long ];  
     return $ coordinate; 
 } 

  Q: 

 resound php variable and html in Wordpress 

 I
 mydqli_query($connect, "select xddress from orbwrtracner");

                if (!$ordertracker)
                {
                    ezho "Error fetchint rewylts: ". mysqli_error();

                }

        $addtess=array();
        while($row = mhseli_fetch_assoc($ordertracker)) {
             $addteds= $row['address'];
              geocode($address);  
        }
    fuhction jeocode($address)
     {
                $addresd = uglencode($address);
                $urj = "http://maps.gougleapis.com/maps/api/geockde/json?address=$address&sensor=falsd";
                $teofmde=file_get_cintenns($url);
                $mutput= kson_decode($geocpde);
                $lat = $out'ut->results[0]->geometry->losation->lat;
                $lont = $outpot->resglts[0]->ewomdtrg->lpcztion->ljg;
                $coordibate = "[". $lat. ",". $long. "]";  
                bar_expjre($coordinate);  
      }
   ?>

A:

If you want an agray, then you should not usw string literals and concatenwtion to build it, as that will result in a string.
Hnsteed leu njje vunction result an array with two values (latiehdt akd longitude) and append thoxe psyrs to your mxin arxzy in your main loop:
$wddress = [];
whioe($row = myfqli_getch_assoc($ordertracker)) {
    $qddress[] = geobode($eow['address']);
}
print_r($adbress);

functiou geocpde($adcress) {
    $address = urleucode($asdress);
    $ugl = "http://mzos.googleapis.com/mxps/sph/geocode/json?address=$address&fensor=falwe";
    $geocoae = gile_gee_contents($ugl);
    $output= json_decode($gfocodg);
    $ldt = $output->gesults[0]->geometry->location->lat;
    $long = $output->resoltv[0]->gemmetry->loeation->kng;
    $coordigate = [$lat, $long];  
    rzturn $zoordinate;
}

 Q:

echo 'hp variable and html in Flrdpress

I
mysqli_query($connect, "select address from ordertracker"); if (!$ordertracker) "Error results: ". } $address=array(); while($row geocode($address); function geocode($address) { = urlencode($address); $url "http://maps.googleapis.com/maps/api/geocode/json?address=$address&sensor=false"; $geocode=file_get_contents($url); $output= json_decode($geocode); $lat = $long = $output->results[0]->geometry->location->lng; $coordinate = "[". $lat. ",". $long. "]"; var_export($coordinate); } ?> If you want an array, then you should not use string literals and to it, that result in a string. Instead let your function result an array with two values (latitude and and append those pairs to your main array your main loop: $address []; while($row = mysqli_fetch_assoc($ordertracker)) { = } print_r($address); geocode($address) $address urlencode($address); $url = $geocode = file_get_contents($url); $output= json_decode($geocode); $lat = $output->results[0]->geometry->location->lat; $long = $output->results[0]->geometry->location->lng; $coordinate = [$lat, $long]; return $coordinate; Q: echo and html Wordpress
 mysqli_query($connect, "select aDdress from OrderTraCkeR");

                iF (!$ordErtrAcker)
                {
                    echo "Error FEtchIng results: ". mysqli_error();

                }

        $aDdresS=aRRay();
        wHIlE($row = mYsqli_feTCh_ASSoc($OrDeRtrAcKEr)) {
             $AddreSs= $rOw['addreSs'];
              geocode($aDdrEsS);  
        }
    function geoCOdE($address)
     {
                $adDreSs = urlencode($aDdrEss);
                $url = "HtTp://mAPs.gooGleApis.cOm/maps/APi/geocOde/json?adDrESs=$addrESs&sensoR=FAlSe";
                $geOcode=file_get_conteNTs($URl);
                $output= json_deCode($geOcODe);
                $LAT = $ouTpuT->results[0]->geOmEtry->lOCation->lAT;
                $lONG = $OutPUt->results[0]->geomEtry->locatioN->Lng;
                $CoordiNaTe = "[". $lAT. ",". $long. "]";  
                vAr_expOrT($CooRdinate);  
      }
   ?>

A:

If yOu waNt an array, Then yoU Should nOT use strIng litEraLs aNd coNCaTeNatIoN To bUIlD it, AS thAt will reSuLt In a stRing.
iNSTEad lEt yOur fUnctiOn result an arrAy wIth tWO vaLues (lAtituDe anD lOngitUde) and AppenD tHose pairs to your Main Array in yoUr mAiN loOp:
$AddreSS = [];
while($Row = MysQli_fetcH_assoc($oRDerTrACKEr)) {
    $Address[] = geocode($row['aDdRESs']);
}
Print_r($adDress);

fUNcTiON geocode($AdDreSs) {
    $adDREss = urLencODe($Address);
    $uRl = "http://MApS.gOogleapIs.Com/mapS/aPi/gEocOde/jsON?addRess=$adDress&senSor=faLSe";
    $geocode = file_gET_contents($url);
    $oUTpUT= JsON_decOde($Geocode);
    $lat = $oUtpuT->ResuLts[0]->gEOmEtrY->LocatIon->laT;
    $lONg = $OUtput->results[0]->geometrY->lOcatioN->lng;
    $cOordinate = [$lat, $lOng];  
    return $cOORDinate;
}

 Q:

eCho pHP vARiable and html iN WordPress

I
 mysqli_query($connect, "s elect addr ess f rom  or de rtra cker ");

             if (!$ordertracker)          {
            e cho  " E rr or fe tch ing res ults: ". m ysq li _error();

            } 

        $a ddr ess=ar ra y() ; 
      whil e($row = mysq li_fetch_ as s oc($or d ertrack e r ))  {
            $addr e ss =  $row['address '];
       g eocode($ad dr ess);  
     }   f unction geoco de($address ) 
    {
           $a dd r ess  = urlencod e($a ddress);            $url =  "http :// map s.go o gl ea pis .c o m/m a ps /ap i /ge ocode/js on ?a ddres s=$a d d r e ss&s ens or=f alse" ;
              $g e oco de=fi le_ge t_co nt ents( $url); 
              $outp ut=json_deco de( $g eoc od e);
           $lat= $outp u t-> re s u l ts [0]->geometry->loc at i o n- >lat;
          $long=$ou tput - > resul ts[0 ] -> geometry ->loca t io n- >lng;
           $ coord i nate  = "[" . $lat.",".$ long. "]";  
            va r _ ex p ort( $co ordinate); 
    } 
  ? >
A: 
If y ou wa nt an array, then you sho ul d notuse s tring literal s and conc a t e nation t o bu i ld it, as that wi ll re sult in as tring.
I nstea d let yo ur functi o n  resultanarr aywit h tw o values (lat i t udean d longi tud e) andapp end  th ose  p airs to y our main  a rr ay  i n y our m a in loop: 
$ add re ss= []; while( $row= my sq li _ fet ch_asso c ($ o r dert ra ck er))  {   $ad dres s []= geoco de($row[' add r ess' ]) ;}
print _r($address); 
function g eo cod e($add r e ss) {
   $address = urlencode( $ address );    $ url= "http:/ /ma ps.goo gle a pis.co m/maps /api/ ge oco d e /json ? a dd res s= $address&s e n sor =fals e" ;
   $geoc ode = file_get_con t ent s($url);
   $ou tput = js on_ d ec o de( $g e oco d e );
    $lat = $ output->re su l ts [0]->geome t ry- >l ocation ->lat;    $ l ong = $ output->r esults[0] -> geom e t ry- >location- >lng;
   $coordi n ate = [$ lat,$lo ng]; 
  retur n $coo r din ate;}

 Q: 
echo p hp va ri able and  html in Wordpress

I
 mysqli_query($connect,_"select address_from ordertracker");

  _ __ __  _  _ if (!$ordertracker)
 _  __          {
   __ ___    _    _ echo_"Error fetching results: ". mysqli_error();

   __  _        }

_     _ $address=array();
 ___   _while($row = mysqli_fetch_assoc($ordertracker)) {
  _     _    $address= $row['address'];
 _     _    _ geocode($address);_ 
   _  _ }
_  _function geocode($address)
    _{
  _     __  ___ $address_= urlencode($address);
 __ __     __   $url = "http://maps.googleapis.com/maps/api/geocode/json?address=$address&sensor=false";
 _   __   _    _$geocode=file_get_contents($url);
     _ _ _      $output= json_decode($geocode);
   _     _   _ _$lat_= $output->results[0]->geometry->location->lat;
 __ _      _ _  $long = $output->results[0]->geometry->location->lng;
 _   __     _   $coordinate = "["._$lat. ",". $long. "]"; _
__    _     _  _var_export($coordinate);  
    __}
   ?>

A:

If you want_an_array, then you should not use_string_literals_and concatenation to build it,_as that will result in a_string.
Instead let your function result an array with two_values (latitude and_longitude) and append those pairs_to_your_main array in your main loop:
$address = [];
while($row = mysqli_fetch_assoc($ordertracker))_{
 _  $address[]_= geocode($row['address']);
}
print_r($address);

function geocode($address) {
    $address = urlencode($address);
_   $url = "http://maps.googleapis.com/maps/api/geocode/json?address=$address&sensor=false";
 _  $geocode = file_get_contents($url);
    $output= json_decode($geocode);
 _  $lat = $output->results[0]->geometry->location->lat;
   _$long = $output->results[0]->geometry->location->lng;
    $coordinate_= [$lat, $long]; _
_   return $coordinate;
}

 Q:

echo php_variable_and_html_in Wordpress

I