Posted By

drwitt on 02/08/07


Tagged

php String function needle haystack begin


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vali29


String_Begins_With


 / Published in: PHP
 

  1. function String_Begins_With($needle, $haystack {
  2. return (substr($haystack, 0, strlen($needle))==$needle);
  3. }

Report this snippet  

You need to login to post a comment.