Re: Pass Variable Names to a Function
| From: | Daniel Brown | Date: | Tue, 05 Feb 2008 18:12:01 +0000 |
| Subject: | Re: Pass Variable Names to a Function | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268728@lists.php.net to get a copy of this message | ||
On Feb 4, 2008 8:24 PM, Richard Lynch <ceo@l-i-e.com> wrote:
> function silly($var){
> return isset($_SESSION[$var]) ? $_SESSION[$var] : '';
> }
>
> silly('foo');
There's also <? ipitythe('foo'); ?>
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>