Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

output_add_rewrite_var

Description

Add URL rewriter values

Syntax

output_add_rewrite_var(
    string $name,
    string $value
): bool

Parameters

name

The variable name.

value

The variable value.

Return

Returns true on success or false on failure.

Examples

1 · return

<?

$name = 'name';
$value = 'value';

$return = output_add_rewrite_var($name, $value);

var_export($return);

?>
true

2 · output

<?

ini_set('url_rewriter.tags', 'a=href,form=');

$name = 'name';
$value = 'value';
output_add_rewrite_var($name, $value);

echo '<a href="">anchor</a><form><input></form>';

?>
<a href="?name=value">anchor</a><form><input type="hidden" name="name" value="value" /><input></form>
HomeMenu