PHP - Function endswith
This function checks if the $stringComplete variable ends with the string $endString.
Copy this code and paste it in your HTML
function endsWith($stringComplete, $endString)
{
$start = $length * -1; //negative
return (substr($stringComplete, $start) === $endString); }
Report this snippet
Comments
Subscribe to comments