Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

String_Begins_With2

DZone's Guide to

String_Begins_With2

· ·
Free Resource
No more letter counting... :-)
edit: strncmp is faster...

function String_Begins_With($needle, $subject) {
 return (strncmp($subject, $needle, strlen($needle))==0);
}
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}