Highlight a phrase within a string
public static highlight ( string $strString, string $strPhrase, string $strOpeningTag = '<strong>', string $strClosingTag = '</strong>' ) : string | ||
$strString | string | The string |
$strPhrase | string | The phrase to highlight |
$strOpeningTag | string | The opening tag (defaults to ) |
$strClosingTag | string | The closing tag (defaults to ) |
return | string | The highlighted string |