<?php $g[1] = 2; $g[2] = 1; $g[3] = 3; if (in_array("1", $g)) { echo "Vienetas yra"; }else{ echo "Vieneto nera tarp $g array "; } ?>