{"action":"opened","issue":{"url":"https://api.github.com/repos/ktamas77/firebase-php/issues/56","repository_url":"https://api.github.com/repos/ktamas77/firebase-php","labels_url":"https://api.github.com/repos/ktamas77/firebase-php/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/ktamas77/firebase-php/issues/56/comments","events_url":"https://api.github.com/repos/ktamas77/firebase-php/issues/56/events","html_url":"https://github.com/ktamas77/firebase-php/issues/56","id":187489728,"number":56,"title":"Some tips needed on updating foreach loop","user":{"login":"Fayozjon","id":9584679,"avatar_url":"https://avatars.githubusercontent.com/u/9584679?v=3","gravatar_id":"","url":"https://api.github.com/users/Fayozjon","html_url":"https://github.com/Fayozjon","followers_url":"https://api.github.com/users/Fayozjon/followers","following_url":"https://api.github.com/users/Fayozjon/following{/other_user}","gists_url":"https://api.github.com/users/Fayozjon/gists{/gist_id}","starred_url":"https://api.github.com/users/Fayozjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fayozjon/subscriptions","organizations_url":"https://api.github.com/users/Fayozjon/orgs","repos_url":"https://api.github.com/users/Fayozjon/repos","events_url":"https://api.github.com/users/Fayozjon/events{/privacy}","received_events_url":"https://api.github.com/users/Fayozjon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-05T10:44:30Z","updated_at":"2016-11-05T10:44:30Z","closed_at":null,"body":"Hi there!\r\nCan you suggest me i want to update \r\n\r\n`$this->firebase = new \\Firebase\\FirebaseLib($DEFAULT_URL, $DEFAULT_TOKEN);\r\n\t\t$uzrs = json_decode($this->firebase->get('users'));\r\n\t\tforeach($uzrs as $user){\r\n\t\techo \"<pre>\";\t\r\n\t\t\t \r\n\t\t\t\r\n\t\t\tforeach($user->chat as $msgs){ \r\n\t\t\t\tif($msgs->type==\"image\"){\r\n\t\t\t\t // HOW TO UPDATE HEREEEEEEEEEEEEEEEEEE\r\n\r\n//HOW TO ADD SOME ADDITIONAL INFO AT CURRENT PATH?\r\n\t\t\t$this->firebase->push($user->chat,['name'=>'TEST','type'=>'text','message'=>'test test']); /// <!---- THIS NOT WORKING\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n`"}}
{"actor":{"display_login":"Fayozjon"}}