oldbloke: (Default)
posted by [personal profile] oldbloke at 12:51pm on 10/08/2005
After I've created row like this:

for ($r=0;$r < $N;$r++){ for ($c=0;$c < $N;$c++){ $row[$r][$c]=\$ary[$r*$N+$c]; }}

Is there a better alternative (method or notation) to this for de-reffing:

${$row[$r][$c]}

?

May

SunMonTueWedThuFriSat
        1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29 30
 
31