<?php
$phEmpty = array('headTitle', 'headLink', 'headScript', 'inlineScript');
foreach ( $phEmpty as $phn ) {
$ph = $view->$phn();
$phikeys = array();
foreach ( $ph as $phik => $phiv ) array_push($phikeys, $phik);
foreach ( $phikeys as $phik ) unset( $ph[$phik] );
}
?>
Is there a better way?
Thanks
没有评论:
发表评论