Skip to content

Commit a86e2a1

Browse files
committed
added leet to change text into leet for #2
1 parent 013a3fd commit a86e2a1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

decorator.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ public function cycle($text){
3030
}
3131
return str_replace($this->origin, $map, $text);
3232
}
33+
34+
public function leet($text){
35+
$from = ['a','e','g','i','o','s','t','A','E','G','I','O','S','T'];
36+
$to = ['4','3','6','1','0','5','7','4','3','6','1','0','5','7'];
37+
return str_replace($from, $to, $text);
38+
}
3339
}
3440

3541
?>

0 commit comments

Comments
 (0)