WP_Rewrite::preg_index

SummerySummery

Indexes for matches for usage in preg_*() functions.

Syntax

WP_Rewrite::preg_index( int $number )

DescriptionDescription

The format of the string is, with empty matches property value, ‘$NUM’. The ‘NUM’ will be replaced with the value in the $number parameter. With the matches property not empty, the value of the returned string will contain that value of the matches property. The format then will be ‘$MATCHES[NUM]’, with MATCHES as the value in the property and NUM the value of the $number parameter.

ParametersParameters

$number

(int) (Required) Index number.

ReturnReturn

(string)

SourceSource

File: wp-includes/class-wp-rewrite.php


			

ChangelogChangelog

Changelog
Version Description
1.5.0 Introduced.
Scroll to Top