Fri, 17 May 2024


How to check if a particular value exist in a specified array?

By: Peter, NetArt Media
Tue, 22 December 2020

$arr=array("duron","celeron","xeon");

if(in_array("celeron",$arr))
{
echo "celeron is present";
}

?>


Category: PHP Examples
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox