OZONE Asylum
Forums
Server-Side Scripting - Oh my!
PHP explode/implode
This page's ID:
32106
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
[code] $new = array(); foreach (explode($old) as $keyvalue) { $temp = explode($keyvalue, ":"); if ($temp[0] == $_POST['cond']) $temp[1] += int($_POST['qty']); $new[] = $temp[0] . ':' . $temp[1]; } $new = implode($new, " "); [/code] completly untested, and it's been years since i've written any php... good luck, so long, ->Tyberius Prime
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail