A
A
Anton2018-02-26 01:49:50
PHP
Anton, 2018-02-26 01:49:50

How to extract the first two words from a string in a variable in php?

<?=$NAMEFULL?>
shows, for example, Ivanov Ivan Ivanovich
How to display only the first and last names in $NAMEnoFULL?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2018-02-26
@Azperin

php.net/manual/ru/function.explode.php by space

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question