- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
- Parse error: syntax error, unexpected 'else' (T_ELSE), expecting end of file in /in/HbbdJ on line 11
Process exited with code 255.
<?php
$userInfo['sex'] = 1;
if ($userInfo['sex'] == 1) {
$userInfo['sex'] = "Женский";
}
elseif ($userInfo['sex'] == 2){
$userInfo['sex'] = "Мужской";
}
return $userInfo['sex'];
else {
$userInfo['sex'] = "Не указано";
return $userInfo['sex'];
}