Advertisement
sigitsuryono25

Untitled

Jun 10th, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. function replaceAll($charToReplace, $string) {
  2. $result = strtolower(preg_replace("/[$charToReplace]/", '', $string));
  3. return $result;
  4. }
  5.  
  6. //masukin ke model CI
  7.  
  8. cara panggilnya
  9. $this->etc->replaceAll("\s+\/&@#$%", $courseName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement