![]() |
| Register | Login | |||||
|
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
|
| | |||
| 0 users currently in Programming. |
| Acmlm's Board - I3 Archive - Programming - [PHP] Arrays |
New poll | | ![]() |
| Add to favorites | Next newer thread | Next older thread |
| User | Post | ||
DarkSlaya![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 930 Gamma Ray Since: 11-17-05 From: Montreal, Canada Last post: 5907 days Last view: 5907 days |
| ||
| 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). |
|||
|
Zem Permabanned. Flaming, trolling, reregistering. Since: 11-18-05 Last post: 6230 days Last view: 6230 days |
| ||
| $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![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 930 Gamma Ray Since: 11-17-05 From: Montreal, Canada Last post: 5907 days Last view: 5907 days |
| ||
| 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) |
|||
|
HyperHacker Star Mario Finally being paid to code in VB! If only I still enjoyed that. <_< Wii #7182 6487 4198 1828 Since: 11-18-05 From: Canada, w00t! My computer's specs, if anyone gives a damn. STOP TRUNCATING THIS >8^( Last post: 5907 days Last view: 5907 days |
| ||
It's called a brain fart, everyone gets them. ![]() |
|||
|
Kyoufu Kawa Intends to keep Rom Hacking in one piece until the end Since: 11-18-05 From: Catgirl Central Station Last post: 5907 days Last view: 5907 days |
| ||
| *Kyoufu Kawa farts loudly while sifting through his handy offline copy of the PHP docs |
| Add to favorites | Next newer thread | Next older thread |
| Acmlm's Board - I3 Archive - Programming - [PHP] Arrays |
| ![]() |