Looks for the word Clicks in the posted values…. if (in_array("Clicks", $_POST['columns'])) { echo "Match found"; } and for a normal array if (in_array("Clicks", $myarray)) { echo "Match found"; }
if (in_array("Clicks", $_POST['columns'])) { echo "Match found"; }
if (in_array("Clicks", $myarray)) { echo "Match found"; }