How to Contribute

Report Bugs or Suggest new Features

Since comments are enabled on every page, you can write your suggestions on this page, or report a bug on the function's page.

Submitting new functions

It's very easy to write your own functions for validation or sanitation. Check the example below.

The function must require one parameter ($data), and can optionally accept a second.

public function my_name ($data, $options)
{
   // do some validating here
   // or sanitizing. Depends on which library you're writing
   // the function for.
 
   // If you want to support options, add the $options to the second parameter
 
   // return TRUE on success and FALSE on failure
   // ... or return sanitized $data    
}

If you've written your own functions, why not share them with us here? :)

code/contribute.txt · Last modified: 2010/07/21 21:48 by davids
Back to top
CC Attribution-Share Alike 3.0 Unported
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0