Check if String Ends with Substring using PHP April 9, 2021 PHP 0 Comments 320 Views str_ends_with function <?php $text = 'Hello world'; $result = str_ends_with($text, 'world'); echo $result ? 'Yes' : 'No';
Leave a Comment
Cancel reply