PHP output_reset_rewrite_vars() Function

PHP is_numeric() Function
PHP is_object() Function

In this article, you will learn how to resets the URL rewriter and removes all rewrite variables previously set by the output_add_rewrite_var() function. The PHP OUTPUT_RESET_REWRITE_VARS() function resets the URL rewriter and removes all rewrite variables previously set by the output_add_rewrite_var() function.

what is the syntax of the OUTPUT_RESET_REWRITE_VARS() function in php?

output_reset_rewrite_vars();

examples of the UTPUT_RESET_REWRITE_VARS() function

Example 1. In this example, we add variables to URLs in the output.

<?php
// Make the URL rewriter affect <a href> and <form> tags
ini_set('url_rewriter.tags','a=href,form=');

// Add a variable
output_add_rewrite_var('var', 'value');
echo '<a href="">This link (URL) will have a variable</a><br>';
ob_flush();

// Remove the variable
output_reset_rewrite_vars();
echo '<a href="">This link (URL) will not have a variable</a>';
?>
PHP is_numeric() Function
PHP is_object() Function

Stay up-to-date about PHP!

We don’t spam!

en English
X
Scroll to Top