home
 
 
 
BeginsWith
<?php
											 
											/*
												BeginsWith
												© System
												http://qdl.scs-inc.us/?top=6623
											*/
											 
											function BeginsWith($haystack, $needle, $caseSensitive = true) {
											if ($caseSensitive) { return (strncmp($haystack, $needle, strlen($needle)) == 0); }
											else { return (strcasecmp(substr($haystack, 0, strlen($needle)), $needle) == 0); }
											}
											 
										?>

↑ UP Powered by Quick Disclosure Lite
© 2010~2021 SCS-INC.US
UP ↑