[PHP-users 12680] Re: ÇÛÎó¤ò«¤Í¤ÆÇÛÎó¤Ë¤¹¤ëÊýË¡¤Ë¤Ä¤¤¤Æ
Moriyoshi Koizumi
php-users@php.gr.jp
Mon, 20 Jan 2003 20:19:10 +0900
¾®Àô¤Ç¤¹¡£
# Àè¤Û¤É¤Î¥á¡¼¥ë¤Ç¤Ïʸ»ú²½¤±¤·¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£
# ¤¹¤ß¤Þ¤»¤ó¡£°ì±þºÆÁ÷¤·¤Þ¤¹¡£
²ò·è¤·¤¿¤ß¤¿¤¤¤Ç¤¹¤¬¡¢¼¡¤Î¤è¤¦¤Ê¤Î¤â¤¢¤ê¤Þ¤¹¡£
<?php
$list = array(
array(1, 2, 3),
array(4, 5, 6),
array(7, 8, 9)
);
print_r(call_user_func_array('array_merge', $list));
print_r(array_reduce($a, 'array_merge', array()));
?>
¤Ç¤â¤³¤¦¤¤¤¦¾®¼êÀè¤Î¥Æ¥¯¥Ë¥Ã¥¯¤Ð¤«¤ê»È¤¦¤È
perl¤ß¤¿¤¤¤Ë¤É¤ó¤É¤ó¥¹¥¯¥ê¥×¥È¤¬±ø¤¯¤Ê¤ê¤Þ¤¹¡£
¤¢¤Þ¤ê¤ª´«¤á¤·¤Þ¤»¤ó¡£
# Ƭ¤ÎÂÎÁà¤È¤¤¤¦¤³¤È¤Ç¡Ä(^^;