Re: variable method names

From: Date: Wed, 14 Feb 2001 16:50:01 +0000
Subject: Re: variable method names
Groups: php.pear 
Request: Send a blank email to php-pear+get-1342@lists.php.net to get a copy of this message
Quoting Kendrick Vargas <ken@hudat.com>: > $this->$method($value); > or > $this->{$method}($value); As far as I know, curly braces are used to expand variables inside of double- quoted strings. Since your method call is unlikely to be inside a double-quoted string, they're unnecessary. I dislike using syntax that adds no meaning, so I'd say don't use the braces. *shrug* -chuck -- Charles Hagenbuch, <chuck@horde.org> "My intuitive grasp of math often leads me astray." -Me

« previous php.pear (#1342) next »