Answer the question
In order to leave comments, you need to log in
How to add new condition, array?
Hello! There are avatars on a crutch:
'bigAva' => ($users['sex'] == m ? 'https://test.aquaworldonline.ru/img/avatars/full/m.png' : 'https://aquaworldonline.ru/img/avatars/full/f.png')
Answer the question
In order to leave comments, you need to log in
'bigAva' => ($user['id'] == 683 ? 'https://aquaworldonline.ru/img/avatars/full/adm.png' : ($users['sex'] == 'm' ? 'https://test.aquaworldonline.ru/img/avatars/full/m.png' : 'https://aquaworldonline.ru/img/avatars/full/f.png'))
Probably so
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question