Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Search for the value "Glenn" in an array and output some text:
SUBMITTED BY:
henry1874w
DATE:
June 26, 2017, 5:23 p.m.
FORMAT:
Text only
SIZE:
176 Bytes
Raw
Download
Tweet
HITS:
853
Go to comments
Report
<?php
$people = array("Peter", "Joe", "Glenn", "Cleveland");
if (in_array("Glenn", $people))
{
echo "Match found";
}
else
{
echo "Match not found";
}
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus