结合2个IF语句

I need to state that if a score is above 21 and the month nam is'whatever' then $month = '3'

if(strpos($data->form->name, 'april') !== false) && ($data->data->score * 1) >= 21 &&$x <= 41){
  $amonth = "3";
} 
elseif(($data->data->score * 1) >= 0 && ($data->data->score * 1) < 21){
  $month = "0";
} 

Should be like

if(strpos($data->form->name, 'april') !== false && ($data->data->score * 1) >= 21 && $x <= 41){
  $amonth = "3";
} elseif(($data->data->score * 1) >= 0 && ($data->data->score * 1) < 21){
$month = "0";
}

Your first line is written the wrong way, you miss some ()

Use this :

if((strpos($data->form->name, 'april') != false) && (($data->data->score * 1) >= 21 &&$x <= 41)){

Update: Sorry, I've missed a &&.

It must be this to give the right result:

if((strpos($data->form->name, 'april') != false) && (($data->data->score * 1) >= 21)  && ($x <= 41)){

Only thing I can think of since your question isn't really clear.