Solved

multidimensional explode

Posted on 2008-10-14
1
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

617 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