Compaire an Array in php

Compaire an array in php compare array : <?php in_array(search,array,type)/*type is optional*/ $ank =array(1,2,3,4,5); $ka = array(3,6,7,8); if(in_array($ka,$ank)) { echo "found"; } or if(in_array(1,$ka)) { echo "found"; /*if 1 is include in $ka it returns true otherwise false*/ } ?>

2 Responses

You're missing a `;` on line 5. Cheers.
i want output of this programm

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.