<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php function endFunc($str, $lastString) { $count = strlen($lastString); if ($count == 0) { return true; } return (substr($str, -$count) === $lastString); } if(endFunc("pqrstuv","rst")) echo "True!"; else echo "False!"; ?> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more