I have to Simple code retrieve data from json.i got problem with json properties that contains like department$_identifier. 'department$_identifier' properties contains the value.but php count it as a variable.how to escape this.
Here is my code :
foreach ($data as $key => $Attendance) {
if ($Attendance->department$_identifier == 'Administration') {
echo $Attendance->department$_identifier;
echo $Attendance->attendanceDate;
echo $Attendance->status;
echo $Attendance->_entityName;
}
}
How to solve this