Quantcast
Channel: Converting multi-dimensional array into row data - Code Review Stack Exchange
Browsing all 2 articles
Browse latest View live

Answer by mickmackusa for Converting multi-dimensional array into row data

As long as this input array is static in its depth and structure, the best and fastest technique (due to lowest overhead) is to use old-school loops.Beyond that, I would:Not declare variable that will...

View Article



Converting multi-dimensional array into row data

Input:$input = ['category' => ['1' => ['name' => 'c1','attribute' => ['1' => ['name' => 'a1','option' => ['1' => ['name' => 'o1' ],'2' => ['name' => 'o2' ] ] ],'2'...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images