php assigning new variable code example
Example: assign value php
reset($val['MemberSaveRoom'])['is_favour_room'] = true; // INCORRECT
$val['MemberSaveRoom'][0]['is_favour_room'] = true; // CORRECT
// result
MemberSaveRoom = array(
[0] = array(
'is_favour_room' => true,
));