I have this array:
$list_desings_ids = array(\'hc1wXBL7zCsdfMu\',\'dhdsfHddfD\',\'otheridshere\');
With a die() + var_dumo() this array return
You can use in_array for this.
in_array
Try
$design_id = 'hc1wXBL7zCsdfMu'; $list_desings_ids = array('hc1wXBL7zCsdfMu','dhdsfHddfD','otheridshere'); if(in_array($design_id, $list_desings_ids)) { echo "Yes, design_id: $design_id exits in array"; }