Documentation

Core_Valid
in package

Valid helper

Tags
subpackage

Core

version
7.x
author

Hostmake LLC

copyright

© 2005-2022 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

Table of Contents

email()  : bool
Checks if $email is valid E-mail address
host()  : bool
Checks if $host is valid host
ip()  : bool
Checks if $ip is valid IPv4 or IPv6
url()  : bool
Checks if $url is valid URL

Methods

email()

Checks if $email is valid E-mail address

public static email(string $email) : bool
Parameters
$email : string

E-mail

Return values
bool

host()

Checks if $host is valid host

public static host(string $host) : bool
Parameters
$host : string

host

Return values
bool

ip()

Checks if $ip is valid IPv4 or IPv6

public static ip(string $ip) : bool
Parameters
$ip : string

IP

Return values
bool

url()

Checks if $url is valid URL

public static url(mixed $url) : bool
Parameters
$url : mixed
Return values
bool

Search results