mirror of
https://gitlab.com/CodeSolutionsProject/CodeGuide
synced 2026-02-14 09:01:35 +01:00
Initial commit
This commit is contained in:
16
langs/php/functions/in_array.json
Normal file
16
langs/php/functions/in_array.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"visual": "in_array($search,$array[,type])",
|
||||
"description": "It searches in a Array for a string \n Type is optional and its for searching exact pattern (true) or not (nothing)",
|
||||
"parameters" : {
|
||||
"$search": "What you want to find",
|
||||
"$array": "The array for search",
|
||||
"$type": "Exact pattern or not"
|
||||
},
|
||||
"example": [
|
||||
"$os = array(\"Windows\",\"Linux\",\"Mac\");",
|
||||
"if (in_array(\"Win\",$os)){",
|
||||
" echo \"Encontrado Win en os\";",
|
||||
"}"
|
||||
],
|
||||
"output": "Encontrado Win en os"
|
||||
}
|
||||
Reference in New Issue
Block a user