+ 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
3 Answers
+ 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
+ 5
Nice one line solution Vitruvian!!!š Bravo!!! š
+ 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