Category
- Php
- JAVA
- DOTNET
- Vbscript
- C
- vb
- html
- Mysql
- Oracle
- sql
- Db
- Computer
- Commerce
- Business
- Arts
- Cashier
- Audit
- Banking
- Accounts
- Math
- Physics
- Biology
- Others
Home >> Asked Questions >> Php
Q. in_array()
Answer :
in_array() By this function we can check particular element exists in the array or not
Posted By : moderator
Example -
$arr = array("a", "b", "c", "d");
if (in_array("d", $arr)) {
echo "d";
}
$arr = array("a", "b", "c", "d");
if (in_array("d", $arr)) {
echo "d";
}
Posted By : moderator
Most Viewed Questions