AnsPress_Validation::only_int( string $field )

Description #

Sanitize as a integer value

Parameters #

  • $field
    string (Required)

Changelog #

VersionDescription
2.0.1Introduced.

Source #

File: includes/class/validation.php

	private function only_int($field) {

		$this->fields[$field] = (int) $this->fields[$field];

	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment