Home > PHP > Function > Output Control > output_add_rewrite_var()

output_add_rewrite_var()

output_add_rewrite_var - Add URL rewriter values

Syntax

bool output_add_rewrite_var (string $name, string $value)

Arguments

  • name - The variable name.
  • value - The variable value.

Description

This function adds another name/value pair to the URL rewrite mechanism. The name and value will be added to URLs (as GET parameter) and forms (as hidden input fields) the same way as the session ID when transparent URL rewriting is enabled with session.use_trans_sid. Please note that absolute URLs (http://example.com/..) aren't rewritten.

Version

PHP 4.3.0, 5

Return value

Returns TRUE on success or FALSE on failure.