That isn't going to work. As soon as the method containing the the call to $parser->handler() exits, (or the nearest local scope), then the value assigned to $instance will be forgotten as the global $instance reverts to its former value and whne the _add_link() routine is called back by the parser, $instance could have just about any value.
In reply to Re: Re: Proper syntax for using a method as a call back routine?
by BrowserUk
in thread Proper syntax for using a method as a call back routine?
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |