classes – Decode a string in PHP

I have a php code that I will post here soon, but when I give var_dump ($ comment) I receive something like

C: wamp64 www twitter application models Comment.php: 94: string
& # 39; & # 39; (length = 47) & # 39; { "message ": "Can not authenticate.

$ comment = $ this-> commentHelper-> postComment ($ comment_url, $ data, json_decode ($ random-> cookies));

var_dump ($ comment);

if ($ comment)
{
$ this -> _ db-> insert (& # 39; comments & # 39 ;, [
        'comment_id'            => $comment_id,
        'comment_url'       => $comment_url,
        'comment_message' => $comment_message,
        'twid'                      => $self->twid,
        'username'              => $random->username,
        'gender'                    => $random->gender,
    ])

$ this -> _ db-> update (& # 39;
        [
            'comments_total' => $self->comments_total + 1
        ],
        [
            'twid' => $self->twid
        ]
    )

return true;
}
d & # 39; other
{
$ this -> _ db-> update (& # 39;
        [
            'last_error' => 'comment error'
        ],
        [
            'twid' => $random->twid
        ]
    )
returns false;
}

And he falls in okayand falling in ok can not show that

{"status": "ok", "message": "asdfasdf was sent to

When all is well, the good would be something like:

C:  wamp64  www  tw  index.php: 33:
object (stdClass)[2]
  public & # 39; tweet_id & # 39; => string & # 39; 1116362093022908417 & # 39; (length = 19)
public & # 39; in_reply_to_status_id & # 39; => string & # 39; 1116073060912848896 & # 39; (length = 19)
public & # 39; tweet_html & # 39; => string & # 39;
  • As I check this variable $ comment, try json_decode already and nothing.

    NOTE: Messages may be different from Could not authenticate you.