Iconseasy_svg_root_svg_offset()

easy_svg_root_svg_offset()

Returns the byte offset of the root svg tag, or null.

Function · Easy SVG · Status: Internal · Defined in includes/icons.php

Internal: not part of the promised public surface. It may change without notice.

Usage

easy_svg_root_svg_offset( string $markup ): ?int

Example

$at = easy_svg_root_svg_offset( $markup );

Description

Case-insensitive; <svg must be followed by a non-word character, so <svgfoo does not count. easy_svg_icon() splices its attributes in right after it.

Parameters

Return value

returnint|null

Offset or null.