示例#1
0
 /**
  * Return the length of current string
  *
  * @return integer The length of string
  */
 public function len()
 {
     return Stringer::strlen($this->value);
 }
示例#2
0
 /**
  * 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);
 }