static function array2Parameters($params, $stringdelim)
	{
		$s = "";
		
		foreach ( $params as $p )
		{
			if ( is_int($p) )
				$s .= "$p, ";
			else
				$s .= $stringdelim . $p . $stringdelim . ", ";
		}
				
		if ( $s )
			// remove last ', ' (comma and space)
			$s = substr($s, 0, -2);
			
		return $s;
	}
static function array2Parameters($params, $stringdelim)
	{
		$s = "";
		
		foreach ( $params as $p )
		{
			if ( is_int($p) )
				$s .= "$p, ";
			else
				$s .= $stringdelim . $p . $stringdelim . ", ";
		}
				
		if ( $s )
			// remove last ', ' (comma and space)
			$s = substr($s, 0, -2);
			
		return $s;
	}
static function array2Parameters ( $ params , $ stringdelim ) { $ s = "" ; foreach ( $ params as $ p ) { if ( is_int ( $ p ) ) $ s .= "$p, " ; else $ s .= $ stringdelim . $ p . $ stringdelim . ", " ; } if ( $ s ) // remove last ', ' (comma and space) $ s = substr ( $ s , 0 , - 2 ) ; return $ s ; }
Convert an array to a commas separated string of parameters

Srings in array are enclosed with a given delimiter, number are outputed directly

@param string[] $params An associative array to convert to a string
@param string $stringdelim Delimiters for strings (usually ' or ")
@return string Return a string with the array imploded (values separated by ", ")
Convert an array to a commas separated string of parameters