View Single Post
  #1  
Old 09-25-2006, 05:46 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Trick for In-Array Operator

You can check if an array is inside another array by converting the array to string first:

PHP Code:
  temp.arr = {{1,2},{3,4},{5,6}};
  echo(
"check1: " @ ((@{1,2}) in temp.arr));
  echo(
"check2: " temp.arr.index(@{3,4})); 
That might be useful for some optimizations.
Reply With Quote