PHP Класс Essence\Dom\Tag

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
get ( string $name, mixed $default = '' ) : mixed Returns the value of an attribute.
matches ( string $name, string $pattern, array &$matches = [] ) : boolean Tests if the value of an attribute matches the given pattern.

Описание методов

get() абстрактный публичный Метод

Returns the value of an attribute.
abstract public get ( string $name, mixed $default = '' ) : mixed
$name string Attribute name.
$default mixed Default value to be returned if the attribute doesn't exist.
Результат mixed Attribute value, or $default.

matches() публичный Метод

Tests if the value of an attribute matches the given pattern.
public matches ( string $name, string $pattern, array &$matches = [] ) : boolean
$name string Attribute name.
$pattern string Pattern.
$matches array Search results.
Результат boolean If the attribute value matches the pattern.