Location: PHPKode > projects > PHP CMS Generator > phpcmsgenerator-0.3.2/phpcmsgenerator/plugins/modifier.indent.php
<?php

/*
 * Smarty plugin
 * -------------------------------------------------------------
 * Type:     modifier
 * Name:     indent
 * Purpose:  indent lines of text
 * -------------------------------------------------------------
 */
function smarty_modifier_indent($string,$chars=4,$char=" ")
{
	return preg_replace('!^!m',str_repeat($char,$chars),$string);
}

?>
Return current item: PHP CMS Generator