| | コメント(7) | トラックバック(0)

closure の記事を書いた後に気付いたんですが、クラスに __invoke() メソッドが定義されてると関数のように呼び出せるんですね。こいつぁ使える!


class A
    public function __invoke()
        echo 'ひえひえ細胞';

$a = new A();


このブログ記事を参照しているブログ一覧: __invoke()

このブログ記事に対するトラックバックURL: http://zenith.sakura.ne.jp/mt/mt-tb.cgi/32


As usual this was a thoughtful submit today. You make me want to preserve coming back and forwarding it my followers?-.

Thank you for your well-thought content. I'm really at perform proper now! So I ought to go off with no reading through all I'd like. But, I place your web site on my RSS feed in order that I can read mor

You've got your point via a great deal far better than I at any time could, thank you!

If you persist to get the best designer handbags but only want to spend little, then you will definitely buy the replica designer handbags.

super fornøyd, super snygga och sköna att gå i!

When a craving struck -- about once a day -- I ripped the foil off a heart, closed my eyes and bit into the fragile veneer of milk chocolate, then down into the ethereal cloud of marshmallow. Fannie May chocolate marshmallows were peerless.

One day my candy stash was gone. Desperate, I snatched




このページは、zenithが2008年7月13日 04:17に書いたブログ記事です。

ひとつ前のブログ記事は「closure incoming」です。



Powered by Movable Type 4.12