From 03ae81ec4bc30af91222e71104ff24abeba7ba53 Mon Sep 17 00:00:00 2001 From: Nisarg Chandan Date: Tue, 10 Oct 2017 16:45:11 +0530 Subject: [PATCH 1/2] Add files via upload --- isPalindrome.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 isPalindrome.php diff --git a/isPalindrome.php b/isPalindrome.php new file mode 100644 index 0000000..63775e9 --- /dev/null +++ b/isPalindrome.php @@ -0,0 +1,34 @@ + + + Palindrome + + + + '; + echo 'Please enter a String
'; + echo '

'; + + + + $num = $_POST["palindrome"]; + $flag=1; + for($i=0;$i < strlen($num) ;$i++) + { + + if($num[$i]!=$num[strlen($num)-1]) + { + $flag=0; + + break; + } + } + if($flag==1) + echo "$num is a Palindrome"; + else + echo "$num is not a palindrome"; + echo ''; + ?> + + + \ No newline at end of file From 53a377e010216ff08c405331ac1373bd3bd8caf7 Mon Sep 17 00:00:00 2001 From: Nisarg Chandan Date: Tue, 10 Oct 2017 16:47:19 +0530 Subject: [PATCH 2/2] Pull Request --- isPalindrome.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/isPalindrome.php b/isPalindrome.php index 63775e9..7b10a2c 100644 --- a/isPalindrome.php +++ b/isPalindrome.php @@ -28,7 +28,9 @@ else echo "$num is not a palindrome"; echo ''; + + echo "Request to pull"; ?> - \ No newline at end of file +