امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
PHP:
Read more
کد:
if ($response->getStatusCode() == 200)
{
try
{
$json = json_decode($jsonText, true);
if (!empty($json['title']))
{
$title = $json['title'];
}
else if (!empty($json['author_name']))
{
$title = $json['author_name'];
}
$validOembed = true;
}
catch (\Exception $e)
{
$error = \XF::phraseDeferred('returned_data_is_not_json');
}
json_decode doesn't throw an...Read more
