/I18N/core/util.php

Description

I18N Utility file.

This program is free software; you can redistribute it and/or modify it under the terms of the BSD License.

Copyright(c) 2004 by Wei Zhuo. All rights reserved.

To contact the author write to <weizhuo[at]gmail[dot]com> The latest version of PRADO can be obtained from: http://prado.sourceforge.net/

Functions
I18N_toEncoding (line 178)

Convert UTF-8 strings to a different encoding. NB. The result may not have been encoded if iconv fails.

  • return: encoded string.
string I18N_toEncoding (string $string, mixed $to)
  • string $string: the UTF-8 string for conversion
I18N_toUTF8 (line 162)

Convert strings to UTF-8 via iconv. NB, the result may not by UTF-8 if the conversion failed.

  • return: UTF-8 encoded string, original string if iconv failed.
string I18N_toUTF8 (string $string, mixed $from)
  • string $string: string to convert to UTF-8
parseDSN (line 40)

For a given DSN (database connection string), return some information about the DSN. This function comes from PEAR's DB package.

LICENSE: This source file is subject to version 3.0 of the PHP license that is available through the world-wide-web at the following URI: http://www.php.net/license/3_0.txt. If you did not receive a copy of the PHP License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.

array parseDSN (string $dsn)
  • string $dsn: DSN format, similar to PEAR's DB

Documentation generated on Sun, 04 Jun 2006 19:00:50 -0400 by phpDocumentor 1.3.0RC4