PHP familiarity shortcuts

This commit is contained in:
udo
2026-04-19 21:15:52 +00:00
parent af642c8167
commit dc05f9faa5
29 changed files with 633 additions and 174 deletions
+19
View File
@@ -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()`