note 85618 deleted from function.substr by felipe

From: Date: Wed, 10 Sep 2008 22:24:30 +0000
Subject: note 85618 deleted from function.substr by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-144321@lists.php.net to get a copy of this message
Note Submitter: gizmore at wechall dot net ---- 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; }

« previous php.notes (#144321) next »