public function val($index = 0) {

		if(false === ('-' . intval($index) == '-' . $index)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($index)), E_USER_ERROR);
		}

		$val = $this -> strip();

		if(true === isset($val[$index])) {
			return $val[$index];
		}

		return null;
	}
public function val($index = 0) {

		if(false === ('-' . intval($index) == '-' . $index)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($index)), E_USER_ERROR);
		}

		$val = $this -> strip();

		if(true === isset($val[$index])) {
			return $val[$index];
		}

		return null;
	}
public function val ( $ index = 0 ) { if ( false === ( '-' . intval ( $ index ) == '-' . $ index ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type integer, "%s" given' , __METHOD__ , gettype ( $ index ) ) , E_USER_ERROR ) ; } $ val = $ this -> strip ( ) ; if ( true === isset ( $ val [ $ index ] ) ) { return $ val [ $ index ] ; } return null ; }
Strips all the numbers from a string and returns the value with an optional index to retrieve
@return mixed
Strips all the numbers from a string and returns the value with an optional index to retrieve