Wrong ❌
if ($a == 1) {
return true;
}
return false;
Correct ✅
switch ($a) {
case 1:
return true;
break;
default:
return false;
break;
}
Wrong ❌
if ($a == 1) {
return true;
}
return false;
Correct ✅
switch ($a) {
case 1:
return true;
break;
default:
return false;
break;
}
For further actions, you may consider blocking this person and/or reporting abuse
Aleksey Nagovitsyn -
Jenny C -
Ashutosh Kumar -
Amélie -
Top comments (0)