PHP 8.4.24 Released!

Voting

: six plus one?
(Example: nine)

The Note You're Voting On

javalc6 at gmail dot com
3 years ago
In case you are using an older version of PHP, you can define and use the following function:

function endsWith($haystack, $needle) {
    $length = strlen($needle);
    return $length > 0 ? substr($haystack, -$length) === $needle : true;
}

<< Back to user notes page

To Top