Answers for "adding column to array php"

PHP
0

adding column to array php

foreach ($array as &$row) {
    $row['column'] = 100;
}
Posted by: Guest on January-31-2022
-1

add column to matrix php

foreach( $output as &$row) {
    $row->cls = 0;
    $row->parentID = 1;
}
Posted by: Guest on July-27-2021

Browse Popular Code Answers by Language