note 85618 added to function.substr
| From: | gizmore at wechall dot net | Date: | Tue, 09 Sep 2008 09:30:57 +0000 |
| Subject: | note 85618 added to function.substr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144260@lists.php.net to get a copy of this message | ||
to check if a string ends with a certain string, i use this function:
function strEndsWith(string $str, string $end)
{
return substr($str, -strlen($end)) == $end;
}
----
Server IP: 128.39.198.38
Probable Submitter: 88.70.227.226
----
Manual Page -- http://www.php.net/manual/en/function.substr.php
Edit -- https://master.php.net/note/edit/85618
Del: integrated -- https://master.php.net/note/delete/85618/integrated
Del: useless -- https://master.php.net/note/delete/85618/useless
Del: bad code -- https://master.php.net/note/delete/85618/bad+code
Del: spam -- https://master.php.net/note/delete/85618/spam
Del: non-english -- https://master.php.net/note/delete/85618/non-english
Del: in docs -- https://master.php.net/note/delete/85618/in+docs
Del: other reasons-- https://master.php.net/note/delete/85618
Reject -- https://master.php.net/note/reject/85618
Search -- https://master.php.net/manage/user-notes.php