diff options
author | Pawel Kowal <pkowal1982@gmail.com> | 2016-07-27 15:49:15 +0200 |
---|---|---|
committer | Pawel Kowal <pkowal1982@gmail.com> | 2016-07-27 15:49:15 +0200 |
commit | 535a6f9faf21f1f8cbd0f4580de47cfc231a625d (patch) | |
tree | 6dc66158438337f0ac636f69ae9f36ec0ce67344 | |
parent | 542bd81e760c4fcd271e95120978f6ddfa730ad5 (diff) |
Array has() documentation
-rw-r--r-- | doc/base/classes.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml index d741dbbb65..dc24231dd0 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -4546,6 +4546,15 @@ Searches the array in reverse order for a value and returns its index or -1 if not found. </description> </method> + <method name="has"> + <return type="bool"> + </return> + <argument index="0" name="value" type="var"> + </argument> + <description> + Return true if the array contains given value. [code][ "inside", 7 ].has("inside") == true, [ "inside", 7 ].has("outside") == false, [ "inside", 7 ].has(7) == true, [ "inside", 7 ].has("7") == false[/code] + </description> + </method> <method name="hash"> <return type="int"> </return> |