phpbar.de logo

Mailinglisten-Archive

[php] addtrailingslash ?

[php] addtrailingslash ?

Michael P. Mehl php_(at)_phpcenter.de
Sun, 24 Jun 2001 16:03:41 +0200


function addtrailingslash ( $string )
{
	if ( !preg_match("/\/$/", $string )
	{
		$string .= "/";
	}

	return $string;
}



php::bar PHP Wiki   -   Listenarchive