I love the frozen FOOD.
たとえば普通に関数を定義して呼び出します。
function hello( $message )
{
echo $message;
}
hello( "hello" );
ここから、少し小細工です。
これを、こんな感じで呼び出すことも可能です。
function hello( $message )
{
echo $message;
}
$test = 'hello';
$test( "hello" );
あーら不思議。
hello関数呼ばれます。
こんなのもOKです。
function f( $t , $mess )
{
$t( $mess );
}
function say( $test )
{
echo $test;
}
f( 'say' , "message" );
引数に関数名を指定して実行させる感じです。
便利な世の中ですよねえ。まったく。
Gem-one(ジェムワン) 権蔵
Gem-one代表.システム開発業ブランドGem-one adIT、音楽レッスン事業 Gem-one Music設立。ビリヤード・スケジュールサイト すけどんも絶賛運用中。
■ブログ
ちょろっとお時間頂戴