+ 2

Hi guys i had problem in reversing a number through PHP

although everything seen to be right no error or the result i can see whats the problem can you find out. How can i solve it. https://code.sololearn.com/w51nJN2YWS9j/?ref=app

17th May 2018, 12:45 PM
🦋FEATHER🦋
🦋FEATHER🦋 - avatar
3 Respostas
+ 5
change line 8 from "$a=$a/10;" to "$a=($a - $d) / 10;" here modification of your code, I hope it helps you to learn how can we use debug info printing: https://code.sololearn.com/wKbMT9uOEkg0/?ref=app
17th May 2018, 1:43 PM
Dmitriy
Dmitriy - avatar
+ 5
Nice one line solution Vitruvian!!!👍 Bravo!!! 🙂
17th May 2018, 2:12 PM
bobbie
bobbie - avatar
+ 2
Hi Ethan I found this example for reversing a number using PHP hopefully it can help you with your code. Best of Luck!!! 🙂 https://code.sololearn.com/wYuXWO8GAQGS/?ref=app
17th May 2018, 1:07 PM
bobbie
bobbie - avatar