You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A web page may have multiple og:image tags, for example, so I made each _value[$key] into an array, and then values are pushed onto the array, like so:
if (!is_array($page->_values[$key]))
{
$page->_values[$key] = array();
}
$page->_values[$key][] = $tag->getAttribute('value');
Of course there are a few keys that need to be explicitly handled, like this:
if (!is_array($page->_values['title']))
{
$page->_values['title'] = array();
}
$page->_values['title'][] = $titles->item(0)->textContent;
The text was updated successfully, but these errors were encountered:
A web page may have multiple og:image tags, for example, so I made each _value[$key] into an array, and then values are pushed onto the array, like so:
Of course there are a few keys that need to be explicitly handled, like this:
The text was updated successfully, but these errors were encountered: