2015ǯ03·î

<?php

function func(callable $callback) {
	echo "callback...";
	call_user_func($callback);
}
class Hoge {
	private function fuga() {
		echo "fuga!";
	}
}
$hoge = new Hoge();
func(array($hoge, "fuga"));

¢¬¤Ê´¶¤¸¤Çcallable ¥¿¥¤¥×¥Ò¥ó¥Æ¥£¥ó¥°¤ò»ÈÍѤ·¤Æ¤ß¤¿¤È¤³¤í¡¢
Catchable fatal error: Argument 1 passed to func() must be callable, array given, called in /path/to/callable.php on line 13 and defined in /path/to/callable.php on line 3

¤Ã¤ÆÅܤé¤ì¡¢callable ¥¿¥¤¥×¥Ò¥ó¥Æ¥£¥ó¥°¤Ê¤ó¤Æ½é¤á¤Æ»È¤Ã¤¿¤Î¤Ç¡¢
¡Ö¤ª¤¤¤ª¤¤¡¢ÇÛÎó»ØÄê¤Ï»È¤¨¤Ê¤¤¤ó¤¸¤ã¤Ê¤¤¤«¤è¤Ã¡×
¤Ã¤È¡¢ºá¤â¤Ê¤¤¥Í¥¿¸µ¥µ¥¤¥È¤òµ¿¤Ã¤Æ¤·¤Þ¤Ã¤¿m(_ _;)m

¤³¤Î¥¨¥é¡¼¤Î¸¶°ø¤Ï¡¢¥¿¥¤¥×¥Ò¥ó¥Æ¥£¥ó¥°¤ò³°¤·¤¿¤é¤ï¤«¤Ã¤¿¡£

Warning: call_user_func() expects parameter 1 to be a valid callback, cannot access private method Hoge::fuga() in...

¤¦¤à¡£fuga¥á¥½¥Ã¥É¤òpublic¤Ë¤·¤¿¤é¥¨¥é¡¼¤Ê¤¯Æ°¤­¤Þ¤·¤¿¤È¤µ¡£

´Ä¶­¤Ïphp5.6.3@win¤Ç¤·¤¿¡£´Ä¶­¤Ë¤è¤Ã¤Æ¤Ï¤Á¤ã¤ó¤È»ØŦ¤·¤Æ¤¯¤ì¤ë¤Î¤«¤â¡£¡£
»÷¤Æ¤¤¤ë¡Ä¡©
㽚
¾©
ÅÄ
Ãæ
¾­
Âç
2015/03/25(¿å)¤ËÃ;夲¤µ¤ì¤ë¤é¤·¤¤(¡­¡¦¦Ø¡¦¡®)

¥ª¥ê¥¸¥Ê¥ë¥Á¥­¥ó 240¢ª250±ß
¥Õ¥é¥¤¥É¥Õ¥£¥Ã¥·¥å 190¢ª200±ß
¤Ê¤É
¢¨¾Ü¤·¤¯¤Ï¸ø¼°¥Ë¥å¡¼¥¹¥Ú¡¼¥¸¤Ç

¤Ç¤â¡¢µîǯ¤Î¾ÃÈñÁýÀÇ»þ¤Ë¤Ï»ö¼Â¾å¤ÎÃͲ¼¤²¤¬¹Ô¤ï¤ì¤Æ¤¤¤¿¤ó¤À¤Í¤§¡£¡£
¥ª¥ê¥¸¥Ê¥ë¥Á¥­¥ó 240¡ÊÀÇÈ´229¡Ë¢ª240¡ÊÀÇÈ´223¡Ë

¤½¤¦¹Í¤¨¤ë¤È¡¢º£²ó¤ÎÃ;夲¤Ç¡ÖÀÇÈ´232±ß¡×¤È¤Ê¤Ã¤¿Ìõ¤À¤«¤é¡¢ÀÇÈ´¤­¤Ç

¡Ø1ǯÁ°¤è¤ê3±ß¤ÎÃ;夲¡Ù

¤È¹Í¤¨¤Æ¤¢¤²¤Þ¤·¤ç¤¦¡À(^o^)¡¿
porosio
ά¤·¤Æ¡Ö¥Ý¥í±ö¤É¤ó¡×¤À¤¬¡¢ÀèÆü¿©¤·¤¿¤È¤³¤í¡¢¤Ê¤Ë¤ä¤é¹Å¡¼¤¤Î³¤¬­ô(Žß§¥Žß)
Â礭¤µ¤Ï4¥ß¥ê¡ß2¥ß¥ê¤¯¤é¤¤¡£¡£
¤Ê¤Ë¤«¤Î¼ï»Ò¤«¤Ê¤¡(^o^;)¡©

¤È¤¤¤¦¤ï¤±¤Ç¡¢µ­Ï¿¤È¤·¤ÆÃÖ¤¤¤Æ¤ª¤¯¡£
¤Á¤Ê¤ß¤Ë¥«¥Ã¥×΢¤Ë¤Ï¡Ö¾ÞÌ£´ü¸Â 15.7.6¡×¡¢¤½¤Î²¼¤Ë¡ÖW/62/1414¡×¤È½ñ¤¤¤Æ¤¢¤ë¡£ ³¤­¤òÆɤà
ÉáÃʲ¿µ¤¤Ê¤¯»È¤Ã¤Æ¤¤¤ë¤ª¶â¡£¤½¤·¤Æ¥»¥ì¥Ö¤Ç¤â¤Ê¤¤¿È¤Ç¤ÏÎɤ¯»È¤¦¤³¤È¤Ë¤Ê¤ë¹Å²ß¡£
¤è¤¯»È¤Ã¤Æ¤¤¤ë¤Î¤Ë¡¢µ¤ÉÕ¤«¤Ê¤«¤Ã¤¿»ö¼Â¤¬È¯³Ð¤·¡¢Ø³Á³¤È¤·¤¿¡£

¤Ã¤È¤¤¤¦Ìõ¤Ç¡¢¥¯¥¤¥º¤Ë¤·¤Æ¤ß¤è¤¦¡£

¹Å²ß¤ò°Ê²¼¤Î2¤Ä¤Î¥°¥ë¡¼¥×¤Ëʬ¤±¤Þ¤·¤¿¡£
¡¦500±ß¶Ì,10±ß¶Ì,5±ß¶Ì,1±ß¶Ì
¡¦100±ß¶Ì,50±ß¶Ì

¤É¤¦¤¤¤¦¥ë¡¼¥ë¤Çʬ¤±¤é¤ì¤¿¤Ç¤·¤ç¤¦¤«¡©


¢­¤³¤¿¤Ø¡£ ³¤­¤òÆɤà