# output_add_rewrite_var_callback?

- Thread: https://externals.io/message/15546
- Original archive: https://news-web.php.net/php.internals/15546
- Started by Jared Williams on 2005-03-22T18:07:30+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #15546 — Jared Williams — 2005-03-22T18:07:30+00:00

URL: https://externals.io/message/15546#15546

Hi,
	Just wondered if a callback variant of `output_add_rewrite_var()` has ever been considered for inclusion in PHP.

The callback prototype being of the form

rewrite_callback($href, $name) { return 'value'; } 

output_add_rewrite_var_callback('foo', 'rewrite_callback');

possibly with the $href as a reference to allow complete replacement.

Jared
