/common/misc_fns.inc.php

Description
Functions
clean_rec (line 24)

Escape strings, if parameter $value is an array, perform it recursive

  • return: cleaned object
mixed clean_rec (mixed $value)
  • mixed $value
countries (line 83)

With no parameters returns an associative array of countries (e.g. 'AF' => 'Afghanistan' ....).

With specified parameter $code returns the name of the country.

mixed countries ([string $country_code = null])
  • string $country_code
get_ip (line 66)

returns ip of the current user

  • return: IP
string get_ip ()
htmlspecialchars_rec (line 39)

Perform htmlspecialchars() on strings, if parameter $value is an array, perform it recursive

  • return: cleaned object
mixed htmlspecialchars_rec (mixed $value)
  • mixed $value
remove_diac (line 9)

Replace diacritic marks

string remove_diac (string $text)
  • string $text
states (line 334)

With no parameters returns an associative array of states, advisable for USA & Canada.

With specified parameter $code returns the name of the state.

mixed states ([string $state_code = null])
  • string $state_code
stripslashes_rec (line 54)

Perform stripslashes() on strings, if parameter $value is an array, perform it recursive

  • return: cleaned object
mixed stripslashes_rec (mixed $value)
  • mixed $value

Documentation generated on Thu, 29 Jun 2006 22:12:40 +0200 by phpDocumentor 1.3.0RC3