2 multidimensional array questions
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

2 multidimensional array questions

From: <tarscher@gmail.com>
Date: Thu Mar 23 2006 - 17:37:17 CET

Hi all,

2 array questions;
I have a multidimensional matrix.
  C1 C2 C3 C4
R1[] [] [] []
R2[] [] [] []
R3[] [] [] []
R4[] [] [] []
R5[] [] [] []
R6[] [] [] []
R7[] [] [] []
R8[] [] [] []

1. Is it possible to search in a specific column?
eg: only search for a value in in C2 and get the rownumber as result?

2. Copy one or more rows and put them in between other rows?
eg: move row 5 and 6 between row 1 and row 2.
  C1 C2 C3 C4
R1[] [] [] []
R5[] [] [] []
R6[] [] [] []
R2[] [] [] []
R3[] [] [] []
R4[] [] [] []
R7[] [] [] []
R8[] [] [] []

Thanks in advance
Stijn
Received on Mon May 1 02:39:30 2006