(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 10:18 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - [PHP] Arrays
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
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).
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.004 seconds; used 348.20 kB (max 388.04 kB)