SearchHelper::_smartSubstr
returns substring of characters around a searchword
Signature
public function _smartSubstr(string
$text,
integer
$searchword )
Parameters
-
$text
- The source string
-
$searchword
- Number of chars to return
Returns
- string