Answer the question
In order to leave comments, you need to log in
Convert string to array?
Hello.
I can't convert the string to an array:
{"update_id":540804803, "message":{"message_id":139,"from":{"id":23645226,"first_name":"Ivan","last_name":" Ivanov"},"chat":{"id":2459226,"first_name":"Ivan","last_name":"Ivanov","type":"private"},"date":1468266128,"text": "Cncjcj"}}
Can you help?
Answer the question
In order to leave comments, you need to log in
This is json:
$str = '{"update_id":540804803, "message":{"message_id":139,"from":{"id":23645226,"first_name":"Ivan","last_name":"Ivanov"},"chat":{"id":2459226,"first_name":"Ivan","last_name":"Ivanov","type":"private"},"date":1468266128,"text":"Cncjcj"}}';
var_dump(json_decode($str, true));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question