Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: ArturoRobles

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
hi. i have two grid and that is fix in 31 rows
i want push column11 of each grid to one array in triger
i use code below for push column11 to array but what about The second grid
$grid = @=gridVar001;
$len = count($grid);
$column_name = 'person_user';
$usr_uid = '';

//$target_array = @=users;
$target_array = array();

for ($i = 1; $i <= $len; $i++)
$usr_uid = $grid[$i][$column_name];
array_push($target_array, $usr_uid);

@=users = $target_array;

Can you try using array_merge_recursive() - Merge one or more arrays recursively?
Code: Select all

//output: Array ( [a] => Array ( [0] => red [1] => blue ) [b] => Array ( [0] => green [1] => yellow ) )

echo $result[a][1];
//output: blue
How to change login labels

Hi, You can go to Admin->Settings->Language […]

Hide / Show based on selection

Hi, I have write a function for show and hide fi[…]

It happens no matter what version of moodle I use.[…]

Thank you kirkwg for your response. I will try thi[…]