Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
[PHP] Small Explode Script
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="IntactDev" data-source="post: 220012" data-attributes="member: 24757"><p>So, I was on a random forum, and I wanted to look through the usernames, but they were horizontally laid out, and I wanted to make them into a vertical list. I googled around to find a little script to organize it, but I couldn't find one so I made one... Here is the small script, it's nothing special, and I'm not even sure if I used the right techniques.</p><p></p><p>[CODE]<?php</p><p></p><p>$string = "string1, asddaf, fasfasf, fasfgkjashjgkfhag, af, afasfasf";</p><p></p><p>$tags = explode(', ', $string);</p><p></p><p>for($i = 0, $tags = explode(', ', $string); $i < count($tags); ++$i) { echo "String #{$k}: {$v}"; }</p><p>?>[/CODE]</p><p></p><p>Enjoy <3</p></blockquote><p></p>
[QUOTE="IntactDev, post: 220012, member: 24757"] So, I was on a random forum, and I wanted to look through the usernames, but they were horizontally laid out, and I wanted to make them into a vertical list. I googled around to find a little script to organize it, but I couldn't find one so I made one... Here is the small script, it's nothing special, and I'm not even sure if I used the right techniques. [CODE]<?php $string = "string1, asddaf, fasfasf, fasfgkjashjgkfhag, af, afasfasf"; $tags = explode(', ', $string); for($i = 0, $tags = explode(', ', $string); $i < count($tags); ++$i) { echo "String #{$k}: {$v}"; } ?>[/CODE] Enjoy <3 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
[PHP] Small Explode Script
Top