create a new array with elements of another array

by kalai 2008-11-27 16:54:44



#find size of the array to be copied to another array variable
$siz=scalar @arrayy;
#create new array @tmp by copying values from 0 to end of the array @arrayy
@tmp=@arrayy[0,$siz-1]; #now @tmp array contain same values as @arrayy

Tagged in:

1254
like
0
dislike
0
mail
flag

You must LOGIN to add comments