0
votes
$prix = $pkm*calculer_distance($dep,$ari);

please help what is wrong there? when I try to run the code it says

Notice: A non well formed numeric value encountered

can anyobody help? thanks.

1
Have you tried dumping $pkm, $dep, $ari and the result of calculer_distance ?Dylan Kas
yes sir I suggest to calculate the distance between two point and the priceAyari

1 Answers

0
votes
$prix = (float)$pkm*(float)calculer_distance((float)$dep,(float)$ari);