I use "Ampps and vagrant "Scotch Box" as local server my problem is that ==
and ===
operators works as I expect but on hosting they behave so different for example I check site status and user role like this
if($status ===0 and $request->user()->role!==1){
}else{
}
this if statement works perfect on local both vagrant and Ammps, but on my hosting always else part works , is there any PHP settings for setting this difference?
Aucun commentaire:
Enregistrer un commentaire