php Or for same variable code example
Example 1: 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,
));
Example 2: php variables
<?php
$string = 'string';
$number = 1;
?>