reverse of a number php error -


this question has answer here:

<?php  $revs=0; $no=123; while($no!=0) { $revs = $revs*10; $revs = $revs +( $revs%10); $no = ($no/10); } echo revs;  ?> 

the code written above doesn't work shows following error

"notice: use of undefined constant revs - assumed 'revs' in /opt/lampp/htdocs/testprojct/proj.php on line 26

you forgot $ in front of revs echo it.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -