Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

multidimensional explode

Posted on 2008-10-14
1
Medium Priority
?
200 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 1500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
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 dynamically set the form action using jQuery.

715 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