PHP output_reset_rewrite_vars() Function Last Updated : 28 Apr, 2025 Comments Improve Suggest changes Like Article Like Report The output_reset_rewrite_vars() is a built-in function in PHP, resets URL rewriter values by removing all rewrite variables previously set through the output_add_rewrite_var() function. Syntax: output_reset_rewrite_vars(): boolParameter: This function does not accept any parameters. Return Values: This function returns "true" if successful otherwise it will return "false". Program 1: The following is the Illustration of the ouput_reset_rewrite_vars() function. PHP <?php ini_set('url_rewriter.tags', 'a=href,form='); output_add_rewrite_var('page', 'home'); echo '<a href="index.php">Home</a>'; output_reset_rewrite_vars(); ?> Output: Home Program 2: The following is the Illustration of the output_reset_rewrite_vars() function. PHP <?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>'; ?> Output: This link (URL) will have a variable This link (URL) will not have a variable Reference: https://www.php.net/manual/en/function.output-reset-rewrite-vars.php Comment More infoAdvertise with us Next Article PHP output_reset_rewrite_vars() Function neeraj3304 Follow Improve Article Tags : PHP PHP-function Similar Reads PHP | output_add_rewrite_var() Function The output_add_rewrite_var() function is an inbuilt function in PHP that is used as an output control functions to add values of URL rewriter. This function adds another name or value pair to the URL rewrite mechanism. The name and value will be added to URLs (as GET parameters) and forms (as hidden 2 min read PHP reset() Function The reset() function is an inbuilt function in PHP. This function is used to move any array's internal pointer to the first element of that array. While working with arrays, it may happen that we modify the internal pointer of an array using different functions like prev() function, current() functi 2 min read PHP | settype() Function The settype() function is a built-in function in PHP. The settype() function is used to the set the type of a variable. It is used to set type or modify type of an existing variable. Syntax: boolean settype($variable_name, $type) Parameters: The settype() function accepts two parameters as shown in 2 min read PHP | ImagickPixelIterator resetIterator() Function The ImagickPixelIterator::resetIterator() function is an inbuilt function in PHP which is used to reset the pixel iterator. Syntax: bool ImagickPixelIterator::resetIterator( void ) Parameters:This function doesnât accepts any parameter. Return Value: This function returns TRUE on success. Below prog 2 min read PHP | Imagick resetImagePage() Function The Imagick::resetImagePage() function is an inbuilt function in PHP which is used to reset the image page. Syntax: bool Imagick::resetImagePage( string $page ) Parameters: This function accepts a single parameter $page which holds the page definition in form of WxH+x+y, where W is for width, H is f 1 min read PHP | rewind( ) Function The rewind() function in PHP is an inbuilt function which is used to set the position of the file pointer to the beginning of the file. Any data written to a file will always be appended if the file is opened in append ("a" or "a+") mode regardless of the file pointer position. The file on which the 2 min read PHP | rewinddir() Function The rewinddir() function is an inbuilt function in PHP which is used to rewind the directory handle. The rewinddir() function opens a directory and list its files, resets the directory handle, list its files once again, then finally closes the directory handle. The directory handle sent as a paramet 2 min read PHP set_include_path() Function The set_include_path() function is an inbuilt function in PHP that sets the include_path configuration option. Syntax: string|false set_include_path(string $include_path)Parameters: This function accepts one parameter that is described below: $include_path: This parameter specifies the new value for 1 min read PHP | stat( ) function The stat() function in PHP is an inbuilt function which is used to return information of a file. The stat(0) function returns statistics of a file which is an array with the following elements : [0] or [dev] - Device number [1] or [ino] - Inode number [2] or [mode] - Inode protection mode [3] or [nl 4 min read PHP | get_defined_vars() Function The get_defined_vars() function is an inbuilt function in PHP which is used to returns an array of all defined variables. This function returns a multidimensional array which contains all the list of variables, environment etc. Syntax: array get_defined_vars( void ) Parameters: This function does no 1 min read Like