(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
09-27-24 08:28 PM
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: 6431 days
Last view: 6430 days
Posted on 02-06-06 05:54 PM Link | Quote
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: 6753 days
Last view: 6753 days
Posted on 02-06-06 06:06 PM Link | Quote
$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: 6431 days
Last view: 6430 days
Posted on 02-06-06 06:12 PM Link | Quote
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: 6431 days
Last view: 6431 days
Posted on 02-06-06 09:10 PM Link | Quote
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: 6430 days
Last view: 6430 days
Posted on 02-10-06 06:27 PM Link | Quote
*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 |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.010 seconds; used 366.20 kB (max 442.09 kB)