Solved

multidimensional explode

Posted on 2008-10-14
1
191 Views
Last Modified: 2012-05-05
hi experts,
I am trying to explode this $string = "1:2:3:a&2:3:7:j&5:2:6:b"  to a multidimensional array,
1:2:3:a&  
2:3:7:j&
5:2:6:b
where  my_array[x][y] is the vlaue in  x = row index and y = colmn index,
is there a function like explode('&',':',$string); ?
0
Comment
Question by:uk1900
1 Comment
 
LVL 3

Accepted Solution

by:
wktang83 earned 500 total points
Comment Utility
There's an explode_recursive function posted here:
http://us3.php.net/manual/en/function.explode.php

Look for the post by webmaster at tubo-world dot de
06-Jul-2008 11:16
0

Featured Post

Easy Project Management (No User Manual Required)

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now