Breaking the continuous array

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kkonline
Forum Contributor
Posts: 251
Joined: Thu Aug 16, 2007 12:54 am

Breaking the continuous array

Post by kkonline »

I have the following array,

Code: Select all

Array ( [0] => 16+37+24 [2] => 16+37+24 [4] => 16+37+24 )
Where '+' is the delimiter and Section+Category+Page format.

Now i want to separate each value in the array... for example 16+37+24 to get the output
Section value as 16 , Category value as 37 and Page value as 24.

For removing the delimiter and processing to get the desired result what can I do?
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: Breaking the continuous array

Post by kaszu »

kkonline
Forum Contributor
Posts: 251
Joined: Thu Aug 16, 2007 12:54 am

Re: Breaking the continuous array

Post by kkonline »

Finally i want the section in $section variable and category in $category variable and page in $page .. so that i can return back ($category,$section,$page) back to the calling function to show the content for each set. what to do then?
Post Reply