Exemple #1
0
 /**
  * Return the length of current string
  *
  * @return integer The length of string
  */
 public function len()
 {
     return Stringer::strlen($this->value);
 }
 /**
  * Return replaced the string according to parameter
  *
  * @param mixed $search The key to search
  * @param mixed $replace The value to search
  *
  * @return string The replaced string
  */
 public function replace($search, $replace)
 {
     return Stringer::str_replace($search, $replace, $this->value);
 }