PHP interesse |
|
Beste hoe vind ik de array ket van een bepaald gegeven dat in de array zit ?
<?php
$box['A'] = array('a1','a2','a3','b1','b2','b3','c1','c2','c3');
$box['B'] = array('a4','a5','a6','b4','b5','b6','c4','c5','c6');
$box['C'] = array('a7','a8','a9','b7','b8','b9','c7','c8','c9');
$box['D'] = array('d1','d2','d3','e1','e2','e3','f1','f2','f3');
$box['E'] = array('d4','d5','d6','e4','e5','e6','f4','f5','f6');
$box['F'] = array('d7','d8','d9','e7','e8','e9','f7','f8','f9');
$box['G'] = array('g1','g2','g3','h1','h2','h3','i1','i2','i3');
$box['H'] = array('g4','g5','g6','h4','h5','h6','i4','i5','i6');
$box['I'] = array('g7','g8','g9','h7','h8','h9','i7','i8','i9');
?>
<?php $box['A'] = array('a1','a2','a3','b1','b2','b3','c1','c2','c3'); $box['B'] = array('a4','a5','a6','b4','b5','b6','c4','c5','c6'); $box['C'] = array('a7','a8','a9','b7','b8','b9','c7','c8','c9'); $box['D'] = array('d1','d2','d3','e1','e2','e3','f1','f2','f3'); $box['E'] = array('d4','d5','d6','e4','e5','e6','f4','f5','f6'); $box['F'] = array('d7','d8','d9','e7','e8','e9','f7','f8','f9'); $box['G'] = array('g1','g2','g3','h1','h2','h3','i1','i2','i3'); $box['H'] = array('g4','g5','g6','h4','h5','h6','i4','i5','i6'); $box['I'] = array('g7','g8','g9','h7','h8','h9','i7','i8','i9'); ?>
Hoe krijg ik dus bv de waarde E als ik naar f4 zoek
Alvast bedankt,
Xzero
|