- #141
evinda
Gold Member
MHB
- 3,836
- 0
Klaas van Aarsen said:$content is an array and we can access the elements in it yes. (Thinking)
I want to check if the input that we give is in the array $content. For this do I write a code as the following?
Code:
<?php include "content.php"; ?>
<html>
<body>
<?php
foreach($content as $item) {
if ($item = $POST['search']){
echo 'OK!';
}
}
?>
...
...
</body>
</html>