contains()
contains(string|\app\framework\Component\StdLib\StdObject\StringObject\StringObject $needle) : boolean
Checks if a string contains the given $char.
If the $char is present, true is returned. If you wish to match a string to a regular expression use StringObject:match().
Parameters
string|\app\framework\Component\StdLib\StdObject\StringObject\StringObject | $needle | String you wish to check if it exits within the current string. |
Returns
boolean —True if current string contains the $needle. Otherwise false is returned.