View Single Post
  #74 (permalink)  
Old 08-23-2007, 08:01 AM
venkat_charya venkat_charya is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 118
venkat_charya is on a distinguished road
Thumbs up Re: Using Arrays in PHP

Hi All,

Can you guys help me to solve this problem.

Want to spilt this one array in two seperate array with same value without using any loop.

EG.

array1[0]= 'One';
array1[1]= 'Two';
array1[2]= 'One';
array1[3]= 'Two';
array1[4]= 'Two';
array1[5]= 'One';

Output Should be like this.
array2[0]= 'One';
array2[1]= 'One';
array2[2]= 'One';
array3[0]= 'Two';
array3[1]= 'Two';
array3[2]= 'Two';
Reply With Quote