This is my code:
<?php
$url = 'https://www.instagram.com/p/BachWpLgFAp/';
$content = file_get_contents($url);
$first_step = explode( 'edge_media_to_caption": {"edges": [{"node": {"text": "' , $content );
$second_step = explode("}}]}" , $first_step[1] );
$str = $second_step[0];
$str2 = substr($str, 0, -1);
print_r ($str2);
$caption = $str2;
if($user_message == "/test"){
var_dump(bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>$caption,
]));
}
?>
Output data of $caption is: You\u2019re never too old to play in the mud. #teampixel photographer @samarthv.pattar throws a \u270c\ufe0f sign at his reflection after the rain.
How i can convert \u codes to utf-8?