palindrome number in php interview question

technical talkiess
0

 <!DOCTYPE html>

<html>

<body>


<?php

$i = 1235321;


$n1 = strrev($i);


if($i == $n1){

echo "numbr ia palindrone";

}else{

echo "not palindrone";

}


?> 


</body>

</html>


Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)