note 96114 deleted from function.implode by danbrown

From: Date: Tue, 09 Feb 2010 14:08:03 +0000
Subject: note 96114 deleted from function.implode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-165797@lists.php.net to get a copy of this message
Note Submitter: lqez ---- I made another implode-like-function with quotation marks. <?php function implode_str( $separator, $arr, $pad = "'", $tail_pad = NULL ) { if( $tail_pad == NULL ) $tail_pad = $pad; $res = ''; $c = count($arr); foreach( $arr as &$node ) $res .= $pad.$node.$tail_pad.((--$c>0)?$separator:NULL); return $res; } ?>

« previous php.notes (#165797) next »