Created
October 13, 2023 03:04
-
-
Save denisdemaisbr/ef376955b606c386ef47b8ef2e2a869e to your computer and use it in GitHub Desktop.
in_array() php in lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function in_array(value, array) | |
for _, v in ipairs(array) do | |
if v == value then | |
return true | |
end | |
end | |
return false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment