Run ❯
Get your
own PHP
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <?php $people = array("Peter", "Joe", "Glenn", "Cleveland", 23); if (in_array("23", $people, TRUE)) { echo "Match found<br>"; } else { echo "Match not found<br>"; } if (in_array("Glenn",$people, TRUE)) { echo "Match found<br>"; } else { echo "Match not found<br>"; } if (in_array(23,$people, TRUE)) { echo "Match found<br>"; } else { echo "Match not found<br>"; } ?> </body> </html>
Match not found
Match found
Match found