Advertisement
munirmahmud6

PHP Project

Feb 24th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. 1. Substr
  2. 2. str_replace
  3. 3. trim
  4. 4. preg_match_all
  5. //preg_match stops looking after the first match. preg_match_all, on the other hand, continues to look until it finishes processing the entire string. Once the match is found, it uses the remainder of the string to try and apply another match.
  6. 5. substr_count //Count the number of times "world" occurs in the string
  7. 6. range() //Create an array containing a range of elements from "0" to "5"
  8. 7. strpos() //Find the position of the first occurrence of "php" inside the string:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement