Hello,
I have a function that returns this array :
Array (
[53] => 53 (12/27 - 01/02)
[1] => 1 (01/03 - 01/09)
[2] => 2 (01/10 - 01/16)
[3] => 3 (01/17 - 01/23)
[4] => 4 (01/24 - 01/30)
[5] => 5 (01/31 - 02/06)
[6] => 6 (02/07 - 02/13)
[7] => 7 (02/14 - 02/20)
[8] => 8 (02/21 - 02/27)
[9] => 9 (02/28 - 03/06)
[10] => 10 (03/07 - 03/13)
[11] => 11 (03/14 - 03/20)
[12] => 12 (03/21 - 03/27)
[13] => 13 (03/28 - 04/03)
[14] => 14 (04/04 - 04/10)
[15] => 15 (04/11 - 04/17)
[16] => 16 (04/18 - 04/24)
[17] => 17 (04/25 - 05/01)
[18] => 18 (05/02 - 05/08)
[19] => 19 (05/09 - 05/15)
[20] => 20 (05/16 - 05/22)
[21] => 21 (05/23 - 05/29)
[22] => 22 (05/30 - 06/05)
[23] => 23 (06/06 - 06/12)
[24] => 24 (06/13 - 06/19)
[25] => 25 (06/20 - 06/26)
[26] => 26 (06/27 - 07/03)
[27] => 27 (07/04 - 07/10)
[28] => 28 (07/11 - 07/17)
[29] => 29 (07/18 - 07/24)
[30] => 30 (07/25 - 07/31)
[31] => 31 (08/01 - 08/07)
[32] => 32 (08/08 - 08/14)
[33] => 33 (08/15 - 08/21)
[34] => 34 (08/22 - 08/28)
[35] => 35 (08/29 - 09/04)
[36] => 36 (09/05 - 09/11)
[37] => 37 (09/12 - 09/18)
[38] => 38 (09/19 - 09/25)
[39] => 39 (09/26 - 10/02)
[40] => 40 (10/03 - 10/09)
[41] => 41 (10/10 - 10/16)
[42] => 42 (10/17 - 10/23)
[43] => 43 (10/24 - 10/30)
[44] => 44 (10/31 - 11/06)
[45] => 45 (11/07 - 11/13)
[46] => 46 (11/14 - 11/20)
[47] => 47 (11/21 - 11/27)
[48] => 48 (11/28 - 12/04)
[49] => 49 (12/05 - 12/11)
[50] => 50 (12/12 - 12/18)
[51] => 51 (12/19 - 12/25)
)
But when i try to echo on of the values this way :
$Week=11;
echo $weeks[$Week];
($weeks is my array)
it does not work !!
nothing prints out.
i know this should normally work.
can someone help me out?
N.B: what i'm tring to do is get the first and last date for a week of the year.
thanks alot
jm