Я делаю проект с использованием API embed.ly.PHP - Как получить ценность один за другим?
//Some Codes............
$objs = $pro->oembed('https://wordpress.org/');
print_r($objs);
Выход выше код
stdClass Object ([provider_url] => https://wordpress.org [description] => Version 4.4 of WordPress, named "Clifford" in honor of jazz trumpeter Clifford Brown, is available for download or update in your WordPress dashboard. New features in 4.4 make your site more connected and responsive. Clifford also introduces a new default theme, Twenty Sixteen. Introducing Twenty Sixteen Our newest default theme, Twenty Sixteen, is a modern take [...] [title] => WordPress › Blog Tool, Publishing Platform, and CMS [url] => https://wordpress.org/ [thumbnail_width] => 264 [thumbnail_url] => https://wpdotorg.files.wordpress.com/2015/10/gray-tshirt-swag.jpg [version] => 1.0 [provider_name] => Wordpress [type] => link [thumbnail_height] => 354)
Как получить значения другой переменной?
Пример:
$provider_url = 'https://wordpress.org';
$descripition = 'Version 4.4 of WordPress, named "Clifford" in honor of jazz trumpeter Clifford Brown, is available for download or update in your WordPress dashboard. New features in 4.4 make your site more connected and responsive. Clifford also introduces a new default theme, Twenty Sixteen. Introducing Twenty Sixteen Our newest default theme, Twenty Sixteen, is a modern take'
Мне нужно получить все значения отдельно для различных переменных? Как я это делаю?
они уже находятся в отдельных переменных –
@Dagon Как я могу получить их для разных переменных? Например, если мне нужно отобразить только описание, как я это делаю? – Sasa1234