Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

  1. #1
    Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    avril 2018
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 28
    Localisation : Algérie

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : avril 2018
    Messages : 61
    Points : 47
    Points
    47

    Par défaut Convertir Object Std-Class en Array

    Bonjour a tous

    comment je peux convertir un Objet Std-Class en Array ;

    j'ai utiliser ce code pour le convertir en Std-Class ,

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
     
    <?php
     
    $content = file_get_contents('calendar.html');
     
    $decode = json_decode($content);
     
    var_dump($decode);
     
     
    ?>

    maintenant je cherches un moyen comment le Convertir en tableau , Voila le source de mon HTML ,

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    {"CalendarDatesOnViewChange":"[{\"Id\":2115708,\"Date\":\"03/01/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115709,\"Date\":\"03/08/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115710,\"Date\":\"03/15/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115711,\"Date\":\"03/22/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115712,\"Date\":\"03/29/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115713,\"Date\":\"04/05/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115714,\"Date\":\"04/12/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115715,\"Date\":\"04/19/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115716,\"Date\":\"04/26/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115717,\"Date\":\"05/03/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115718,\"Date\":\"05/10/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115719,\"Date\":\"05/17/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115720,\"Date\":\"05/24/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115721,\"Date\":\"05/31/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115722,\"Date\":\"06/07/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115723,\"Date\":\"06/14/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115724,\"Date\":\"06/21/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115725,\"Date\":\"06/28/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115726,\"Date\":\"07/05/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115727,\"Date\":\"07/12/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115728,\"Date\":\"07/19/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115729,\"Date\":\"07/26/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115730,\"Date\":\"08/02/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115731,\"Date\":\"08/09/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115732,\"Date\":\"08/16/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115733,\"Date\":\"08/23/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115734,\"Date\":\"08/30/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115735,\"Date\":\"09/06/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115736,\"Date\":\"09/13/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115737,\"Date\":\"09/20/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115738,\"Date\":\"09/27/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115739,\"Date\":\"10/04/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115740,\"Date\":\"10/11/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115741,\"Date\":\"10/18/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115742,\"Date\":\"10/25/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115743,\"Date\":\"11/01/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115744,\"Date\":\"11/08/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115745,\"Date\":\"11/15/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115746,\"Date\":\"11/22/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115747,\"Date\":\"11/29/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115748,\"Date\":\"12/06/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115749,\"Date\":\"12/13/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115750,\"Date\":\"12/20/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115751,\"Date\":\"12/27/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115785,\"Date\":\"03/02/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115786,\"Date\":\"03/09/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115787,\"Date\":\"03/16/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115788,\"Date\":\"03/23/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115789,\"Date\":\"03/30/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115790,\"Date\":\"04/06/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115791,\"Date\":\"04/13/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115792,\"Date\":\"04/20/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115793,\"Date\":\"04/27/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115794,\"Date\":\"05/04/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115795,\"Date\":\"05/11/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115796,\"Date\":\"05/18/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115797,\"Date\":\"05/25/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115798,\"Date\":\"06/01/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115799,\"Date\":\"06/08/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115800,\"Date\":\"06/15/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115801,\"Date\":\"06/22/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115802,\"Date\":\"06/29/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115803,\"Date\":\"07/06/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115804,\"Date\":\"07/13/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115805,\"Date\":\"07/20/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115806,\"Date\":\"07/27/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115807,\"Date\":\"08/03/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115808,\"Date\":\"08/10/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115809,\"Date\":\"08/17/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115810,\"Date\":\"08/24/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115811,\"Date\":\"08/31/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115812,\"Date\":\"09/07/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115813,\"Date\":\"09/14/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115814,\"Date\":\"09/21/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115815,\"Date\":\"09/28/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115816,\"Date\":\"10/05/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115817,\"Date\":\"10/12/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115818,\"Date\":\"10/19/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115819,\"Date\":\"10/26/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115820,\"Date\":\"11/02/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115821,\"Date\":\"11/09/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115822,\"Date\":\"11/16/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115823,\"Date\":\"11/23/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115824,\"Date\":\"11/30/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115825,\"Date\":\"12/07/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115826,\"Date\":\"12/14/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115827,\"Date\":\"12/21/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null},{\"Id\":2115828,\"Date\":\"12/28/2019\",\"IsHoliday\":true,\"IsWeekend\":true,\"TimeBands\":[],\"TimeBandsTable\":null}]","isRedirect":false,"appointmentAlreadyBlocked":null,"appointmentBookingType":null,"appointmentActionType":1}

    Merci , A tous

  2. #2
    Modérateur

    Avatar de MaitrePylos
    Homme Profil pro
    DBA & Dev PHP
    Inscrit en
    juin 2005
    Messages
    4 939
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : Belgique

    Informations professionnelles :
    Activité : DBA & Dev PHP
    Secteur : Service public

    Informations forums :
    Inscription : juin 2005
    Messages : 4 939
    Points : 11 053
    Points
    11 053

    Par défaut

    Bonjour,

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
     
    $decode = json_decode($content,true);

  3. #3
    Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    avril 2018
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 28
    Localisation : Algérie

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : avril 2018
    Messages : 61
    Points : 47
    Points
    47

    Par défaut

    Mercii , je vien d'afficher un Array , sauf que le code est tres complex encore

    Encore je dois faire Decode pour le Array , je veux encore convertir le premier element de ce Array [CalendarDatesOnViewChange] en Array

    pour pouvoir choisir des dates et des ID

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Array ( [CalendarDatesOnViewChange] => [{"Id":2115708,"Date":"03/01/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115709,"Date":"03/08/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115710,"Date":"03/15/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115711,"Date":"03/22/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115712,"Date":"03/29/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115713,"Date":"04/05/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115714,"Date":"04/12/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115715,"Date":"04/19/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115716,"Date":"04/26/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115717,"Date":"05/03/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115718,"Date":"05/10/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115719,"Date":"05/17/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115720,"Date":"05/24/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115721,"Date":"05/31/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115722,"Date":"06/07/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115723,"Date":"06/14/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115724,"Date":"06/21/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115725,"Date":"06/28/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115726,"Date":"07/05/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115727,"Date":"07/12/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115728,"Date":"07/19/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115729,"Date":"07/26/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115730,"Date":"08/02/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115731,"Date":"08/09/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115732,"Date":"08/16/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115733,"Date":"08/23/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115734,"Date":"08/30/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115735,"Date":"09/06/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115736,"Date":"09/13/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115737,"Date":"09/20/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115738,"Date":"09/27/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115739,"Date":"10/04/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115740,"Date":"10/11/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115741,"Date":"10/18/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115742,"Date":"10/25/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115743,"Date":"11/01/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115744,"Date":"11/08/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115745,"Date":"11/15/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115746,"Date":"11/22/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115747,"Date":"11/29/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115748,"Date":"12/06/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115749,"Date":"12/13/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115750,"Date":"12/20/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115751,"Date":"12/27/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115785,"Date":"03/02/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115786,"Date":"03/09/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115787,"Date":"03/16/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115788,"Date":"03/23/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115789,"Date":"03/30/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115790,"Date":"04/06/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115791,"Date":"04/13/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115792,"Date":"04/20/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115793,"Date":"04/27/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115794,"Date":"05/04/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115795,"Date":"05/11/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115796,"Date":"05/18/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115797,"Date":"05/25/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115798,"Date":"06/01/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115799,"Date":"06/08/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115800,"Date":"06/15/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115801,"Date":"06/22/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115802,"Date":"06/29/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115803,"Date":"07/06/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115804,"Date":"07/13/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115805,"Date":"07/20/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115806,"Date":"07/27/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115807,"Date":"08/03/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115808,"Date":"08/10/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115809,"Date":"08/17/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115810,"Date":"08/24/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115811,"Date":"08/31/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115812,"Date":"09/07/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115813,"Date":"09/14/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115814,"Date":"09/21/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115815,"Date":"09/28/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115816,"Date":"10/05/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115817,"Date":"10/12/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115818,"Date":"10/19/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115819,"Date":"10/26/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115820,"Date":"11/02/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115821,"Date":"11/09/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115822,"Date":"11/16/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115823,"Date":"11/23/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115824,"Date":"11/30/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115825,"Date":"12/07/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115826,"Date":"12/14/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115827,"Date":"12/21/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null},{"Id":2115828,"Date":"12/28/2019","IsHoliday":true,"IsWeekend":true,"TimeBands":[],"TimeBandsTable":null}] [isRedirect] => [appointmentAlreadyBlocked] => [appointmentBookingType] => [appointmentActionType] => 1 )

  4. #4
    Rédacteur/Modérateur
    Avatar de jreaux62
    Homme Profil pro
    Webdesigner
    Inscrit en
    août 2008
    Messages
    14 515
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 52
    Localisation : France, Pas de Calais (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Webdesigner
    Secteur : Arts - Culture

    Informations forums :
    Inscription : août 2008
    Messages : 14 515
    Points : 29 383
    Points
    29 383

    Par défaut

    Bonjour,

    ce n'est pas un code json valide (il y a des crochets [...] ?).

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    <?php
    $content = file_get_contents('calendar.html');
     
    $decode = json_decode($content);
    $decode->CalendarDatesOnViewChange = json_decode($decode->CalendarDatesOnViewChange);
     
    var_dump($decode);
    ?>
    On obtient :
    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
    object(stdClass)[1]
      public 'CalendarDatesOnViewChange' => 
        array (size=88)
          0 => 
            object(stdClass)[2]
              public 'Id' => int 2115708
              public 'Date' => string '03/01/2019' (length=10)
              public 'IsHoliday' => boolean true
              public 'IsWeekend' => boolean true
              public 'TimeBands' => 
                array (size=0)
                  ...
              public 'TimeBandsTable' => null
          1 => 
            object(stdClass)[3]
              public 'Id' => int 2115709
              public 'Date' => string '03/08/2019' (length=10)
              public 'IsHoliday' => boolean true
              public 'IsWeekend' => boolean true
              public 'TimeBands' => 
                array (size=0)
                  ...
              public 'TimeBandsTable' => null
          2 => 
            object(stdClass)[4]
              public 'Id' => int 2115710
              public 'Date' => string '03/15/2019' (length=10)
              public 'IsHoliday' => boolean true
              public 'IsWeekend' => boolean true
              public 'TimeBands' => 
                array (size=0)
                  ...
              public 'TimeBandsTable' => null
          3 => 
    .......
                  ...
              public 'TimeBandsTable' => null
      public 'isRedirect' => boolean false
      public 'appointmentAlreadyBlocked' => null
      public 'appointmentBookingType' => null
      public 'appointmentActionType' => int 1
    "Si tu suis le chemin qui s'appelle « plus tard », tu arriveras à la place qui s'appelle « jamais »."
    François Camille Prévot (1910-1996), instituteur puis Directeur d'école et... mon grand-père.
    "Pose ta question, tu seras idiot une seconde. Ne la pose pas, tu seras idiot toute ta vie."
    Albert Einstein (1879-1955).
    Mes tutos DVP
    Gestion-Affichage de Nouvelles
    Affichage en tableau HTML
    Fonctions de redimensionnement d'images

  5. #5
    Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    avril 2018
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 28
    Localisation : Algérie

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : avril 2018
    Messages : 61
    Points : 47
    Points
    47

    Par défaut

    Re - Bonjour ,

    je viens de faire la meme chose , avec le premier élément du tableau ,

    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
    <?php
     
    $content = file_get_contents('calendar.html');
     
    $decode = json_decode($content, true);
     
    //var_dump($decode);
     
    //$array = json_decode(json_encode($decode), True);
     
    //print_r($decode);
     
    $decode1 = json_decode($decode[CalendarDatesOnViewChange]);  // le Voila ici
     
    print_r($decode1);
     
     
    ?>
    j'ai reçu ce Resultat avec Std-Object , es que c'est normale ?

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Array ( [0] => stdClass Object ( [Id] => 2115708 [Date] => 03/01/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [1] => stdClass Object ( [Id] => 2115709 [Date] => 03/08/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [2] => stdClass Object ( [Id] => 2115710 [Date] => 03/15/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [3] => stdClass Object ( [Id] => 2115711 [Date] => 03/22/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [4] => stdClass Object ( [Id] => 2115712 [Date] => 03/29/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [5] => stdClass Object ( [Id] => 2115713 [Date] => 04/05/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [6] => stdClass Object ( [Id] => 2115714 [Date] => 04/12/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [7] => stdClass Object ( [Id] => 2115715 [Date] => 04/19/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [8] => stdClass Object ( [Id] => 2115716 [Date] => 04/26/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [9] => stdClass Object ( [Id] => 2115717 [Date] => 05/03/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [10] => stdClass Object ( [Id] => 2115718 [Date] => 05/10/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [11] => stdClass Object ( [Id] => 2115719 [Date] => 05/17/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [12] => stdClass Object ( [Id] => 2115720 [Date] => 05/24/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [13] => stdClass Object ( [Id] => 2115721 [Date] => 05/31/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [14] => stdClass Object ( [Id] => 2115722 [Date] => 06/07/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [15] => stdClass Object ( [Id] => 2115723 [Date] => 06/14/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [16] => stdClass Object ( [Id] => 2115724 [Date] => 06/21/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [17] => stdClass Object ( [Id] => 2115725 [Date] => 06/28/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [18] => stdClass Object ( [Id] => 2115726 [Date] => 07/05/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [19] => stdClass Object ( [Id] => 2115727 [Date] => 07/12/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [20] => stdClass Object ( [Id] => 2115728 [Date] => 07/19/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [21] => stdClass Object ( [Id] => 2115729 [Date] => 07/26/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [22] => stdClass Object ( [Id] => 2115730 [Date] => 08/02/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [23] => stdClass Object ( [Id] => 2115731 [Date] => 08/09/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [24] => stdClass Object ( [Id] => 2115732 [Date] => 08/16/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [25] => stdClass Object ( [Id] => 2115733 [Date] => 08/23/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [26] => stdClass Object ( [Id] => 2115734 [Date] => 08/30/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [27] => stdClass Object ( [Id] => 2115735 [Date] => 09/06/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [28] => stdClass Object ( [Id] => 2115736 [Date] => 09/13/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [29] => stdClass Object ( [Id] => 2115737 [Date] => 09/20/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [30] => stdClass Object ( [Id] => 2115738 [Date] => 09/27/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [31] => stdClass Object ( [Id] => 2115739 [Date] => 10/04/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [32] => stdClass Object ( [Id] => 2115740 [Date] => 10/11/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [33] => stdClass Object ( [Id] => 2115741 [Date] => 10/18/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [34] => stdClass Object ( [Id] => 2115742 [Date] => 10/25/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [35] => stdClass Object ( [Id] => 2115743 [Date] => 11/01/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [36] => stdClass Object ( [Id] => 2115744 [Date] => 11/08/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [37] => stdClass Object ( [Id] => 2115745 [Date] => 11/15/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [38] => stdClass Object ( [Id] => 2115746 [Date] => 11/22/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [39] => stdClass Object ( [Id] => 2115747 [Date] => 11/29/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [40] => stdClass Object ( [Id] => 2115748 [Date] => 12/06/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [41] => stdClass Object ( [Id] => 2115749 [Date] => 12/13/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [42] => stdClass Object ( [Id] => 2115750 [Date] => 12/20/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [43] => stdClass Object ( [Id] => 2115751 [Date] => 12/27/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [44] => stdClass Object ( [Id] => 2115785 [Date] => 03/02/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [45] => stdClass Object ( [Id] => 2115786 [Date] => 03/09/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [46] => stdClass Object ( [Id] => 2115787 [Date] => 03/16/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [47] => stdClass Object ( [Id] => 2115788 [Date] => 03/23/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [48] => stdClass Object ( [Id] => 2115789 [Date] => 03/30/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [49] => stdClass Object ( [Id] => 2115790 [Date] => 04/06/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [50] => stdClass Object ( [Id] => 2115791 [Date] => 04/13/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [51] => stdClass Object ( [Id] => 2115792 [Date] => 04/20/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [52] => stdClass Object ( [Id] => 2115793 [Date] => 04/27/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [53] => stdClass Object ( [Id] => 2115794 [Date] => 05/04/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [54] => stdClass Object ( [Id] => 2115795 [Date] => 05/11/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [55] => stdClass Object ( [Id] => 2115796 [Date] => 05/18/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [56] => stdClass Object ( [Id] => 2115797 [Date] => 05/25/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [57] => stdClass Object ( [Id] => 2115798 [Date] => 06/01/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [58] => stdClass Object ( [Id] => 2115799 [Date] => 06/08/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [59] => stdClass Object ( [Id] => 2115800 [Date] => 06/15/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [60] => stdClass Object ( [Id] => 2115801 [Date] => 06/22/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [61] => stdClass Object ( [Id] => 2115802 [Date] => 06/29/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [62] => stdClass Object ( [Id] => 2115803 [Date] => 07/06/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [63] => stdClass Object ( [Id] => 2115804 [Date] => 07/13/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [64] => stdClass Object ( [Id] => 2115805 [Date] => 07/20/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [65] => stdClass Object ( [Id] => 2115806 [Date] => 07/27/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [66] => stdClass Object ( [Id] => 2115807 [Date] => 08/03/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [67] => stdClass Object ( [Id] => 2115808 [Date] => 08/10/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [68] => stdClass Object ( [Id] => 2115809 [Date] => 08/17/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [69] => stdClass Object ( [Id] => 2115810 [Date] => 08/24/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [70] => stdClass Object ( [Id] => 2115811 [Date] => 08/31/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [71] => stdClass Object ( [Id] => 2115812 [Date] => 09/07/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [72] => stdClass Object ( [Id] => 2115813 [Date] => 09/14/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [73] => stdClass Object ( [Id] => 2115814 [Date] => 09/21/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [74] => stdClass Object ( [Id] => 2115815 [Date] => 09/28/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [75] => stdClass Object ( [Id] => 2115816 [Date] => 10/05/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [76] => stdClass Object ( [Id] => 2115817 [Date] => 10/12/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [77] => stdClass Object ( [Id] => 2115818 [Date] => 10/19/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [78] => stdClass Object ( [Id] => 2115819 [Date] => 10/26/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [79] => stdClass Object ( [Id] => 2115820 [Date] => 11/02/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [80] => stdClass Object ( [Id] => 2115821 [Date] => 11/09/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [81] => stdClass Object ( [Id] => 2115822 [Date] => 11/16/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [82] => stdClass Object ( [Id] => 2115823 [Date] => 11/23/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [83] => stdClass Object ( [Id] => 2115824 [Date] => 11/30/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [84] => stdClass Object ( [Id] => 2115825 [Date] => 12/07/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [85] => stdClass Object ( [Id] => 2115826 [Date] => 12/14/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [86] => stdClass Object ( [Id] => 2115827 [Date] => 12/21/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) [87] => stdClass Object ( [Id] => 2115828 [Date] => 12/28/2019 [IsHoliday] => 1 [IsWeekend] => 1 [TimeBands] => Array ( ) [TimeBandsTable] => ) )
    Merciiiiiiiiiiiiiiiiiiiiiiiiiiii

  6. #6
    Modérateur

    Avatar de MaitrePylos
    Homme Profil pro
    DBA & Dev PHP
    Inscrit en
    juin 2005
    Messages
    4 939
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : Belgique

    Informations professionnelles :
    Activité : DBA & Dev PHP
    Secteur : Service public

    Informations forums :
    Inscription : juin 2005
    Messages : 4 939
    Points : 11 053
    Points
    11 053

    Par défaut

    Donc du coup un

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
     
    $array = json_decode(json_encode($decode1), true);
    Devrais être bon.

    Source : https://stackoverflow.com/questions/...class-to-array

  7. #7
    Rédacteur/Modérateur
    Avatar de jreaux62
    Homme Profil pro
    Webdesigner
    Inscrit en
    août 2008
    Messages
    14 515
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 52
    Localisation : France, Pas de Calais (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Webdesigner
    Secteur : Arts - Culture

    Informations forums :
    Inscription : août 2008
    Messages : 14 515
    Points : 29 383
    Points
    29 383

    Par défaut

    "Si tu suis le chemin qui s'appelle « plus tard », tu arriveras à la place qui s'appelle « jamais »."
    François Camille Prévot (1910-1996), instituteur puis Directeur d'école et... mon grand-père.
    "Pose ta question, tu seras idiot une seconde. Ne la pose pas, tu seras idiot toute ta vie."
    Albert Einstein (1879-1955).
    Mes tutos DVP
    Gestion-Affichage de Nouvelles
    Affichage en tableau HTML
    Fonctions de redimensionnement d'images

  8. #8
    Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    avril 2018
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 28
    Localisation : Algérie

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : avril 2018
    Messages : 61
    Points : 47
    Points
    47

    Par défaut

    Mdr !!! Merci maitrePolice ,,, Merci l'équipe ....

  9. #9
    Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    avril 2018
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 28
    Localisation : Algérie

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : avril 2018
    Messages : 61
    Points : 47
    Points
    47

    Par défaut

    Merci !! jreaux62 ,, c'est résolu avec le simple code de maitrepolys ,,

  10. #10
    Modérateur

    Avatar de MaitrePylos
    Homme Profil pro
    DBA & Dev PHP
    Inscrit en
    juin 2005
    Messages
    4 939
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : Belgique

    Informations professionnelles :
    Activité : DBA & Dev PHP
    Secteur : Service public

    Informations forums :
    Inscription : juin 2005
    Messages : 4 939
    Points : 11 053
    Points
    11 053

    Par défaut

    Pylos.....MaitrePylos tsssssssss

  11. #11
    Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    avril 2018
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 28
    Localisation : Algérie

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : avril 2018
    Messages : 61
    Points : 47
    Points
    47

    Par défaut

    Citation Envoyé par MaitrePylos Voir le message
    Pylos.....MaitrePylos tsssssssss
    Mdrr Merci MaitrePylos ....

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. J'ai un std Class object a stocker dans deux tables
    Par princessj dans le forum PHP & MySQL
    Réponses: 7
    Dernier message: 03/08/2016, 19h21
  2. Création d'un object sur classe dynamique
    Par TicTacToe dans le forum Delphi
    Réponses: 16
    Dernier message: 16/04/2007, 17h49
  3. [FAQ]Comment convertir une std::string en AnsiString ?
    Par Invité dans le forum C++Builder
    Réponses: 2
    Dernier message: 26/11/2006, 18h08
  4. Convertir un std::string en double.
    Par vdumont dans le forum SL & STL
    Réponses: 16
    Dernier message: 10/05/2006, 16h46
  5. [gtkmm] Convertir un ustring vers un array
    Par alejandro dans le forum GTK+
    Réponses: 2
    Dernier message: 17/05/2005, 13h43

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo