public static function terminateScript($strScript)
    {
        if (!$strScript) {
            return '';
        }
        if (!($strScript = trim($strScript))) {
            return '';
        }
        if (substr($strScript, -1) != ';') {
            $strScript .= ';';
        }
        return $strScript . _nl();
    }
public static function terminateScript($strScript)
    {
        if (!$strScript) {
            return '';
        }
        if (!($strScript = trim($strScript))) {
            return '';
        }
        if (substr($strScript, -1) != ';') {
            $strScript .= ';';
        }
        return $strScript . _nl();
    }
public static function terminateScript ( $ strScript ) { if ( ! $ strScript ) { return '' ; } if ( ! ( $ strScript = trim ( $ strScript ) ) ) { return '' ; } if ( substr ( $ strScript , - 1 ) != ';' ) { $ strScript .= ';' ; } return $ strScript . _nl ( ) ; }
Utility function to make sure a script is terminated with a semicolon.

@param $strScript
@return string
@was TerminateScript
Utility function to make sure a script is terminated with a semicolon .