/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * Check if haystack string ends with needle string * * @param string $haystack * @param string $needle * @param boolean $caseSensitive (default true) * */ function endsWith($haystack, $needle, $caseSensitive = true) { if ($caseSensitive) { } else { } } /** * Check if haystack string begins with needle string * * @param string $haystack * @param string $needle * @param boolean $caseSensitive (default true) * */ function beginsWith($haystack, $needle, $caseSensitive = true) { if ($caseSensitive) { } else { } }
Comments
