n1c Posted March 8, 2018 Report Share Posted March 8, 2018 Добрый день.подскажите, как вывести первое слово имени? чтобы не создавать поля в аккаунте "Имя" и "Фамилия", пользователь вводит "Иван Иванов", то чтобы выводило "Иван" Quote Link to post Share on other sites
Gruzin Posted March 8, 2018 Report Share Posted March 8, 2018 Может это вам поможет Quote Link to post Share on other sites
Noxter Posted March 8, 2018 Report Share Posted March 8, 2018 print current(explode(' ', 'Иван Иванов')); Quote Link to post Share on other sites
Noxter Posted March 10, 2018 Report Share Posted March 10, 2018 Чтобы вывести последнее: print end(explode(' ', 'Иван Иванов')); Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.