<?php
/**
* a palindrome is a string that equals itself when reversed.
* Create a function called PalindromeCheck() that receives
* an string as paremeters and returns true if the string is
* a palindrome
*
* PalindromeCheck(string $string)
* @example PalindromeCheck('asddsa') === true
* @example PalindromeCheck('asdd') === false
*/
var_dump('hello');
palindrom("asddsa");
function palindrom($word){
$reversed = strrev($word);
if($word == $reversed){
return true;
}
return false;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: