PHP 8.5.0 Beta 1 available for testing

Voting

: max(eight, one)?
(Example: nine)

The Note You're Voting On

javalc6 at gmail dot com
2 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