php man page for mysqlnd_ms_match_wild

Query: mysqlnd_ms_match_wild

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

MYSQLND_MS_MATCH_WILD(3)						 1						  MYSQLND_MS_MATCH_WILD(3)

mysqlnd_ms_match_wild - Finds whether a table name matches a wildcard pattern or not

SYNOPSIS
bool mysqlnd_ms_match_wild (string $table_name, string $wildcard)
DESCRIPTION
Finds whether a table name matches a wildcard pattern or not. This function is not of much practical relevance with PECL mysqlnd_ms 1.1.0 because the plugin does not support MySQL replication table filtering yet.
PARAMETERS
o $table_name - The table name to check if it is matched by the wildcard. o $wildcard - The wildcard pattern to check against the table name. The wildcard pattern supports the same placeholders as MySQL replication filters do. MySQL replication filters can be configured by using the MySQL Server configuration options --replicate-wild-do-table and --replicate-wild-do-db. Please, consult the MySQL Reference Manual to learn more about this MySQL Server feature. The sup- ported placeholders are: o % - zero or more literals o _ - one literal Placeholders can be escaped using .
RETURN VALUES
Returns TRUE table_name is matched by wildcard. Otherwise, returns FALSE
EXAMPLES
Example #1 mysqlnd_ms_match_wild(3) example <?php var_dump(mysqlnd_ms_match_wild("schema_name.table_name", "schema%")); var_dump(mysqlnd_ms_match_wild("abc", "_")); var_dump(mysqlnd_ms_match_wild("table1", "table_")); var_dump(mysqlnd_ms_match_wild("asia_customers", "%customers")); var_dump(mysqlnd_ms_match_wild("funny%table","funny\%table")); var_dump(mysqlnd_ms_match_wild("funnytable", "funny%table")); ?> The above example will output: bool(true) bool(false) bool(true) bool(true) bool(true) bool(true) PHP Documentation Group MYSQLND_MS_MATCH_WILD(3)
Related Man Pages
is_int(3) - php
odbc_next_result(3) - php
mysqlnd_memcache_get_config(3) - php
pg_meta_data(3) - php
var_dump(3) - php
Similar Topics in the Unix Linux Community
placeholders in file names
Single character wildcard for SED
Something went awfully wrong in PHP+MySQL :(
MySQL Master-Slave Configuration: Don't Replicate a Row of a Table?
Problem with sed wildcard &quot;*&quot;