Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $var = "bowchickawowwow";
- if (instr($var, "chicka")) print "needle found in the haystack!";
- function instr($haystack, $needle) {
- $pos = strpos($haystack, $needle, 0);
- if ($pos != 0) return true;
- return false;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement