Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Search an array for the value 5 and return its key (notice the ""):
SUBMITTED BY:
henry1874w
DATE:
June 25, 2017, 2:48 p.m.
FORMAT:
Text only
SIZE:
77 Bytes
Raw
Download
Tweet
HITS:
282
Go to comments
Report
<?php
$a=array("a"=>"5","b"=>5,"c"=>"5");
echo array_search(5,$a,true);
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus