php foreach on object code example
Example 1: php loop through object
foreach ($obj as $key => $value) {
echo "$value\n";
}
Example 2: php loop through object
// Try edit message
const data = {
message: 'Hello world',
}
$('#msg').html(data.message)
console.log(data)