Showing posts with label stripos(). Show all posts
Showing posts with label stripos(). Show all posts

PHP : Check if a string ends with a substring

In this tutorial learn how to Check if a string ends with a substring in php using stripos() and strlen() methods.

function str_ends_with(string $string, string $substr): bool
{
    return stripos($string, $substr) === strlen($string) - strlen($substr);
}

how to call ssh from vs code

 To call SSH from VS Code, you can use the built-in Remote Development extension. This extension allows you to open a remote folder or works...