mirror of
https://gitlab.com/CodeSolutionsProject/CodeGuide
synced 2026-02-14 09:01:35 +01:00
16 lines
496 B
JSON
16 lines
496 B
JSON
{
|
|
"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"
|
|
} |