Skip to content
Snippets Groups Projects
Commit c5b2d657 authored by Bob Mottram's avatar Bob Mottram
Browse files

Endswith function

parent 6434ca21
No related branches found
No related tags found
No related merge requests found
<?php
function endsWith($haystack, $needle)
{
$length = strlen($needle);
if ($length == 0) {
return true;
}
return (substr($haystack, -$length) === $needle);
}
// Backup password screen for getting the password
// prior to backup or restore
......
<?php
function endsWith($haystack, $needle)
{
$length = strlen($needle);
if ($length == 0) {
return true;
}
return (substr($haystack, -$length) === $needle);
}
// Updates values for the system monitor screen
$output_filename = "settings.html";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment