note 11908 added to function.call-user-method.php

From: Date: Tue, 13 Mar 2001 08:06:33 +0000
Subject: note 11908 added to function.call-user-method.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12326@lists.php.net to get a copy of this message
You can also dynamically call functions through variable variables...for example: class xyz{ function mybar($str) { echo $str; } } $xyz = new xyz; $foo = 'bar'; $xyz->{'my'.$foo}('dynamic call to function'); http://www.php.net/manual/en/function.call-user-method.php

« previous php.notes (#12326) next »