Check The Number is Palindrom of Not Using Php

<html>
<form>
String:<input type="text" name="txtname"><br>
<input type="submit" name="btnsbmt" value="ok">
</form>
</html>
<?php
extract($_REQUEST);
if(isset($btnsbmt))
{
    $a=strrev($txtname);
    if($a==$txtname)
        echo"string is palindrome...";
    else
        echo"string is not palindrome...";
}
?>
Check The Number is Palindrom of Not Using Php Check The Number is Palindrom of Not Using Php Reviewed by Unknown on 7:43:00 PM Rating: 5

1 comment:

Powered by Blogger.