<?php /* EndsWith © System http://qdl.scs-inc.us/?top=6624 */ function EndsWith($mainString, $endString) { return (substr($mainString, strlen($mainString) - strlen($endString)) == $endString); } ?>