Solved

multidimensional explode

Posted on 2008-10-14
1
192 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
ID: 22712799
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

911 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

21 Experts available now in Live!

Get 1:1 Help Now