Documentation

Core_Valid
in package

Valid helper

Tags
subpackage

Core

version
7.x
author

Hostmake LLC

copyright

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

Table of Contents

Methods

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
ipv4()  : bool
Checks if $ip is valid IPv4
ipv6()  : bool
Checks if $ip is valid 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

ipv4()

Checks if $ip is valid IPv4

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

IP

Return values
bool

ipv6()

Checks if $ip is valid IPv6

public static ipv6(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

        
On this page

Search results