public static function wrapOnDemand($condition, $tag, $content)
    {
        if ($condition) {
            echo sprintf('<%s>%s</%s>', $tag, $content, $tag);
        } else {
            echo $content;
        }
    }
public static function wrapOnDemand($condition, $tag, $content)
    {
        if ($condition) {
            echo sprintf('<%s>%s</%s>', $tag, $content, $tag);
        } else {
            echo $content;
        }
    }
public static function wrapOnDemand ( $ condition , $ tag , $ content ) { if ( $ condition ) { echo sprintf ( '<%s>%s</%s>' , $ tag , $ content , $ tag ) ; } else { echo $ content ; } }
Wraps content into a tag on demand

@param boolean $condition
@param string $tag
@param string $content
@return void
Wraps content into a tag on demand