|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
remove space between words
first..sorry if my english is bad.
I'm a newbie in php world, sorry if this is a dummy question. Here is the cases : I have a variabel : PHP Code:
i want to change the variabel so it's become PHP Code:
i've tried using explode. PHP Code:
then i'll get an array. i use this : PHP Code:
i hoped that will make a new variabel, PHP Code:
but it didn't work. When i checked it with PHP Code:
If i do this : PHP Code:
i have the word : iloveher But i don't want to echo it, i want to make it became a new variabel. Can someone tell me how to do that ?. Thx before.... ![]() |
|
#2
|
|||
|
|||
|
PHP Code:
That will replace the spaces or whitespace in the string with nothing...
__________________
~ Joe Penn We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set? Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you. |
|
#3
|
|||
|
|||
|
In reply to this,...
what If I had a string,.. "alabama florida" how can I make the first letter in each word a Capitol letter. I know about strtoupper and strtolower. But all I want is the first letter.
__________________
-- Jason |
|
#4
|
|||
|
|||
|
Thats a hard one (
)PHP Code:
|
|
#5
|
|||
|
|||
|
hahaha,....it's all about knowing the functions
Thanks jpenn |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > remove space between words |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|