Files
CodeGuide/langs/php/functions/in_array.json
2017-09-17 18:28:06 +02:00

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"
}