PHP familiarity shortcuts
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
:sig
|
||||
bool contains(String haystack, String needle)
|
||||
|
||||
:params
|
||||
haystack : string to search in
|
||||
needle : substring to look for
|
||||
return value : `true` when `needle` appears in `haystack`, otherwise `false`
|
||||
|
||||
:desc
|
||||
Returns whether `haystack` contains `needle`.
|
||||
|
||||
An empty `needle` always returns `true`.
|
||||
|
||||
:see
|
||||
>string
|
||||
|
||||
:related
|
||||
**PHP:** `str_contains()`
|
||||
**JavaScript / Node.js:** `String.prototype.includes()`
|
||||
Reference in New Issue
Block a user