bonjour
j ai un petit probleme
J ai un tableau de type associatif :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
$tab[1][nombrearticle] => 6
            [1] => Array
                (
                    [Translation] => XXX
                    [DateFin] => 2007-10-31 23:59:59
                    [libelle] => XXX
                    [ArticleId] =>XXX
                    [type] => XXX
                    [Methode] => XXX
                    [Parametres] => XXX
                    [PromotionId] => XXX
                    [Categorie] => XXX
                    [Marche] => XXX
                    [Segment] => XXX
                    [Pu] => XXX
                )
 
            [2] => Array
                (
                    [Translation] => XXX
                    [DateFin] => 2007-10-31 23:59:59
                    [libelle] => XXX
                    [ArticleId] => XXX
                    [type] => XXX
                    [Methode] => XXX
                    [Parametres] =>XXX
                    [PromotionId] => XXX
                    [Categorie] => XXX
                    [Marche] => XXX
                    [Segment] => XXX
                    [Pu] => XXX
                )
       )
$tab[2]([nombrearticleG] => 3
            [1] => Array
                (
                    [Translation] => XXX
                    [DateFin] => 2007-10-20 23:59:59
                    [libelle] => XXX
                    [ArticleId] =>XXX
                    [type] => XXX
                    [Methode] => XXX
                    [Parametres] => XXX
                    [PromotionId] => XXX
                    [Categorie] => XXX
                    [Marche] => XXX
                    [Segment] => XXX
                    [Pu] => XXX
                )
 
            [2] => Array
                (
                    [Translation] => XXX
                    [DateFin] => 2007-10-20 23:59:59
                    [libelle] => XXX
                    [ArticleId] => XXX
                    [type] => XXX
                    [Methode] => XXX
                    [Parametres] =>XXX
                    [PromotionId] => XXX
                    [Categorie] => XXX
                    [Marche] => XXX
                    [Segment] => XXX
                    [Pu] => XXX
                )
          )
J aimerai savoir si il etait possible de trier ce tableau par dateFin?
J ai pensé a utiliser Usort mais je ne vois pas comment
Pourriez vous m aider??

merci

tiger63
Ke le tigre soit en toi:!