Variable $name
(string) gives something like (5 possible values):
"Elton John"
"Barak Obama"
"George Bush"
"Julia"
"Marry III Great"
Want to add <br />
after the first whitespace (" " between words).
So, it should give when echo:
"Elton<br/>John"
"Barak<br/>Obama"
"George<br/>Bush"
"Julia"
"Marry<br/>III Great"
1) <br />
should be added only if there is more than one word in a string.
2) Only after the first word.
3) Can be more than 3 words in variable.
Thanks.