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'; |