In order to support functions, a type system is needed. The JSON types are used:
* number (integers and double-precision floating-point format in JSON)
- * string
+ * string (a sequence of Unicode code points. Note that a code point is distinct to a code unit)
See discussion/121.
This PR brings the following changes:
and:
boolean contains(array|string $subject, any $search)
value.
If
$subject
is an array, this function returns true if one of the elements in the array is equal to the provided$search
value.If the provided
$subject
is a string, this function returns true if$search
argument.$subject
string at least one equal occurrence$search
string. If the$search
value is not a string, thefalse
.