Location: PHPKode > projects > Prsaar Social Networking Platform > PrsaarColour-0.7.alpha.6.3/pr-inside/function.php
<?php
	//functions for easy coding
	
	//print it
	function _P($String)
	{
		print $String;
	}
	
	//is plural
	function _IsPlural($Word, $Base = 0, $PostPix = 's')
	{
		if($Base > 1)
		{
			$Word = "$Word"."$PostFix";
		}
		return $Word;
	}
	
	//print it directly
	function _Plural($Word, $Base = 0, $PostFix = 's')
	{
		if($Base > 1)
		{
			$Word = "$Word"."$PostFix";
		}
		print $Word;
	}
	
	//make a string safe, by converting special characters to HTML 
	function _SafeString($String)
	{
		$String = trim($String);
		$String = str_replace("'", '\\\'', $String);
		$String = str_replace('"', "&quot;", $String);
		$String = str_replace("\n", " <br /> ", $String);
		return $String;
	}
?>
Return current item: Prsaar Social Networking Platform