Page 1 of 1

Breaking the continuous array

Posted: Sun Mar 16, 2008 8:56 am
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?

Re: Breaking the continuous array

Posted: Sun Mar 16, 2008 9:36 am
by kaszu

Re: Breaking the continuous array

Posted: Sun Mar 16, 2008 10:46 am
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?