- print_r: documentation ( source)
<?php
$variables['options']['attributes'] = [
'attribute1' => 'value',
'href' => 'http://www.google.com.mx',
'attribute2' => 'value 2'
];
$attributes = array('href' => '') + $variables['options']['attributes'];
print_r($attributes);