Using a function inside a array

I’ve been trying to work out how to properly use a function inside a array or a better way to do this, but have gotten very little help…

Does anyone have any insight into this matter.

[code]<?
function TEST(){
$test = “BABY”;
echo “$test”;
return $test;
}

$t_ = array( ‘TEST’ => TEST());

?>[/code]

i would just use:
[php]$t_[‘TEST’] = TEST();[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service