Advertisement
cafreak

Starts With in PHP

Mar 20th, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.11 KB | None | 0 0
  1. <?php
  2.     function startsWith($content, $check){
  3.         return substr($content, 0, strlen($check)) == $check;
  4.     }
  5. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement