Re: 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

Re: 2 multidimensional array questions

From: blackghost <blackghost@gmail.com>
Date: Thu Mar 23 2006 - 19:10:11 CET

1. Is it possible to search in a specific column?

try :

$fixed_col = 5;

for ($i=1;$i<=row_numbers;$i++) {
if ( $table[$fixed_col][$i] == $search_value ) {
echo "found !";
exit;
}
}
Received on Mon May 1 02:39:34 2006