Menu
Folks,
Can you show me how you join words in a string ?
Say my $string looks like this:
“Every Day, every where and in every way”.
Now let’s join the “Every Day” to “EveryDay”.
And join the “every where” to “everywhere”.
And “every way” to “everyway”.
I just need to learn how to combine words based on my choosing. Here my choosing was “every”.
No. Don’t do it using str_replace() replacing the space after the “every”. There is another way to do it which I need to learn.
Maybe implode() or explode() or substring() or subpos() or whatever you use, show me how you do it.