* @copyright Deakin University 2007,2008 * @package queXS * @subpackage functions * @link http://www.deakin.edu.au/dcarf/ queXS was writen for DCARF - Deakin Computer Assisted Research Facility * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL) Version 2 * * */ /** * Configuration file */ include_once(dirname(__FILE__).'/../config.inc.php'); /** * Return only numbers given a string * * @param string $val The value to convert to numbers only * @return int 0 if empty or no numbers otherwise the number portion of the string * */ function bigintval($val) { $r = ereg_replace('[^0-9]*','',$val); if (empty($r)) return 0; else return $r; }