<?php
/**
* dolphin. Collection of useful PHP skeletons.
- * Copyright (C) 2009-2019 Johannes 'Banana' Keßler
+ * Copyright (C) 2009-2010 Johannes 'Banana' Keßler
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the COMMON DEVELOPMENT AND DISTRIBUTION LICENSE
* validate the given string with the given type. Optional check the string
* length
*
- * @param string $input The string to check
- * @param string $mode How the string should be checked
- * @param mixed $limit If int given the string is checked for length
- *
* @see http://de.php.net/manual/en/regexp.reference.unicode.php
* http://www.sql-und-xml.de/unicode-database/#pc
*
* the replace should be empty, otherwise are there chars which are not
* allowed
*
- */
+ * @param string $input The string to check
+ * @param string $mode How the string should be checked
+ * @param mixed $limit If int given the string is checked for length
+ *
+ * @return bool
+ */
function validate($input,$mode='text',$limit=false) {
// check if we have input
$input = trim($input);