Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
User | Post |
Kyoufu Kawa Posts: 484/1353 |
*Kyoufu Kawa farts loudly while sifting through his handy offline copy of the PHP docs |
HyperHacker Posts: 1022/5072 |
It's called a brain fart, everyone gets them. |
DarkSlaya Posts: 395/936 |
I am truly stupid.
(Now, why I didn't think of explode() when I always use it, I dunno). But yeah, thanks for the help. (note: I really feel stupid) |
Zem Posts: 717/1097 |
$cleverVariableName = explode(' ', $string); // that's a space between two single quotes. They could be double quotes too. Doesn't matter.
explode() is your friend |
DarkSlaya Posts: 394/936 |
Ok, so I've got a string, let's call it $string.
Let's say string is: "I am someone that can do stuff" What I want to be able to do is to make $string be an array. So in other words I want: $string = "I am someone that can do stuff"; To be: $string = array("I", "am", "someone", "that", "can", "do", "stuff"); Any way to do this (converthing these stuff manualy is going to take forever). |