2
0
Эх сурвалжийг харах

Array has() documentation

Pawel Kowal 9 жил өмнө
parent
commit
535a6f9faf
1 өөрчлөгдсөн 9 нэмэгдсэн , 0 устгасан
  1. 9 0
      doc/base/classes.xml

+ 9 - 0
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>