Switch to English?
Yes
Переключитись на українську?
Так
Переключиться на русскую?
Да
Przełączyć się na polską?
Tak
Post your project for free and start receiving proposals from freelancers within minutes after publication!

Assistance to TreeTable

Translated7 USD

Applications 2

Application viewing is only available registered users.
  • Oleg V.
    8 August 2022, 21:14 |

    Если используете json_encode, вторым параметром можно указать, конвертировать в обьект или в массив.

  • Sergiy Step
    8 August 2022, 21:25 |

    Не та структура виходить що потрібно. Зможете реалізувати скрипт який вободує правильний json?

  • Oleg V.
    8 August 2022, 21:42 |

    А есть код, который генерирует данный массив?

    Если дадите, сделаю.

  • Sergiy Step
    8 August 2022, 21:50 |

    Код который генерирует тот многомерный масив PHP  что я приложил в проекте?

  • Sergiy Step
    8 August 2022, 21:52 |

    Или можно тот масив пересобрать и создать json?

  • Oleg V.
    8 August 2022, 22:02 |

    Лучше код. Посмотрю, решим, что можно сделать.

  • Sergiy Step
    8 August 2022, 22:11 |

    Многомерный масив делаю вот так

    function getTree($dataset)

    {

        $tree_2 = array();

        foreach ($dataset as $id => &$node) {

            if (!$node['PARENTS_ID']) {


                $tree_2[$id] = &$node;

            } else {

                $dataset[$node['PARENTS_ID']]['children'][$id] = &$node;

            }

        }

        return $tree_2;

    }

    $dataset - передаю обичный асоцитивный одномерный масив


  • Oleg V.
    8 August 2022, 22:28 |

    Сделайте перед return  json_encode($tree_2,  JSON_FORCE_OBJECT) и покажите

  • Roman Serebrak
    8 August 2022, 22:39 |

    Скорее всего у него проблема, что ему не нужны ключи вложенного массива, судя по приведенной структуре json

  • Roman Serebrak
    8 August 2022, 22:19 |

    Скорее всего нужно делать рекурсивную функцию, которая будет определять элемент как массив и его пересобирать в нужный json

  • Sergiy Step
    8 August 2022, 22:24 |

    Сможете рализовать?

  • Roman Serebrak
    8 August 2022, 22:33 |

    Попробуй собрать себе образец json массива, а потом в том же онлайн декодировщике посмотри какой массив у тебя получиться.
    Например для

    [PARENTS_ID] => 129  как должны выглядеть childrens в json ???
  • Sergiy Step
    8 August 2022, 22:47 |

    У кого есть возможность сделать ето? Сделайте ставку... Если бюджет занижен скажите.

  • Oleg V.
    8 August 2022, 22:52 |

    попробуйте сделать что я предложил.

Current freelance projects in the category PHP

Fix CLS

It is necessary to fix the Cumulative Layout Shift through code PageSpeed does not see this problem, but through Google Chrome, it is visible that there is a layout shift for the desktop version of the page According to Google Search, there is an error regarding the speed of…

PHPWeb Programming ∙ 1 day 2 hours back ∙ 26 proposals

Transfer the fully ready adaptive HTML5 structure to WordPress.

267 USD

I am looking for an experienced WordPress developer who can convert our meticulously prepared static HTML5/CSS3 code into a high-performance custom WordPress theme. The frontend is almost ready (about 99%): semantic markup, metadata, and multilingual structure (hreflang) are…

Content Management SystemsPHP ∙ 1 day 4 hours back ∙ 60 proposals

GoPos Integration

Hello, has anyone done an integration of GoPos with a custom website for a restaurant in Poland? I need help, their documentation is very sparse, there is only swagger and it lacks descriptions. https://app.gopos.io/doc/swagger-ui/index.html The essence is this: we used their…

PHPWeb Programming ∙ 1 day 20 hours back ∙ 25 proposals

Write meta data for ALT using AI

A website on Laravel, the site has many images for which it is necessary to automatically generate correct semantic and relevant ALT descriptions for the images, with the possibility of verification.

AI & Machine LearningPHP ∙ 2 days 18 hours back ∙ 34 proposals

A developer is needed to complete and integrate a project for automatic data collection and processing.

16 USD

The main part of the parser has already been implemented. The parser works in a Windows environment through Microsoft Edge: the site has anti-bot protection, so data collection is performed not through direct HTTP requests, but through a live browser session. The scripts control…

PHPWeb Programming ∙ 3 days back ∙ 25 proposals

Client
Sergiy Step
Ukraine Ukraine  13  0
Project published
3 years back
73 views