- var_dump: documentation ( source)
- define: documentation ( source)
<?php
define('OG_SITE_NAME', 'Holaciudad.com');
$arrOpenGraphTags = array( 'og:type' => 'article',
'og:image' => 'http://placekitten.com/324x234');
if (defined('OG_SITE_NAME')) {
$arrOpenGraphTags =+ array('og:site_name' => OG_SITE_NAME);
}
var_dump($arrOpenGraphTags);