Functions Dev: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
Line 19: Line 19:
Possible parameters of the second argument : 'none','int','intcomma','alpha','aZ','aZ09','array','san_alpha','nohtml','alphanohtml','custom'.
Possible parameters of the second argument : 'none','int','intcomma','alpha','aZ','aZ09','array','san_alpha','nohtml','alphanohtml','custom'.


* 'none' = for no parameter type check,
* 'none' = for no parameter type check
* 'int' = check that it's a numeric (integer or decimal)
* 'int' = check that it's a numeric (integer or decimal)
* 'intcomma' = checks that it is an integer with commas ('1,2,3,4...')
* 'intcomma' = checks that it is an integer with commas ('1,2,3,4...')
* 'alpha' = verifies that it is text and signs
* 'alpha' = verifies that it is text and signs
* 'aZ' = verifies that it is a-z only
* 'aZ' = verifies that it is a-z only
* 'aZ09' = verifies that it is non-special characters and numbers
* 'aZ09' = verifies that it is non-special characters and numbers
* 'array' = verifies that it is an array
* 'array' = verifies that it is an array
* 'san_alpha' = purged string (do not use for free text)
* 'san_alpha' = purged string (do not use for free text)
* 'nohtml' = verifies that there is no html code
* 'nohtml' = verifies that there is no html code
* 'alphanohtml' = checks that there is no html code
* 'alphanohtml' = checks that there is no html code
* 'custom' = defined by the following filters and options with the parameters $filter and $options
* 'custom' = defined by the following filters and options with the parameters $filter and $options


For more information see the comments of the function in the file htdocs/core/lib/functions.lib.php
For more information see the comments of the function in the file htdocs/core/lib/functions.lib.php
1,988

edits

Navigation menu