Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Check if the integer key "0" exists in an array:
SUBMITTED BY:
henry1874w
DATE:
June 23, 2017, 9:38 p.m.
FORMAT:
Text only
SIZE:
144 Bytes
Raw
Download
Tweet
HITS:
340
Go to comments
Report
<?php
$a=array("Volvo","BMW");
if (array_key_exists(0,$a))
{
echo "Key exists!";
}
else
{
echo "Key does not exist!";
}
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus