Posts by Cristopher Parrela • 46 points
2 posts
-
1
votes1
answer45
viewsA: How do I get the given 'distance' in JSON in this example?
That echo should already solve your problem $json_data['rows'][0]['elements'][0]['distance']
-
2
votes3
answers246
viewsA: Comparison of dates in PHP
That should work already $dataInformada = '2018-04-13'; $dataAtual = date( 'Y-m-d' ); if( $dataInformada < $dataAtual ) { echo 'Data informada menor que data atual'; }…