WebWrapper.inc 205 B

1234567891011
  1. <?php
  2. class WebWrapper {
  3. public function urlEncode($string) {
  4. return urlencode($string);
  5. }
  6. public function convertToUrl($string) {
  7. return strtolower(str_replace(' ', '-', trim($string)));
  8. }
  9. }