看板 PHP 關於我們 聯絡資訊
※ 引述《FacetheFaith (誠意與尊重)》之銘言: : 假設有一個多維陣列為 : $a=array( : 0 =>array( 0=>123 , 1=>456 , 2=>789 ), : 1 =>array( 0=>"abc" , 1=>"def" , 2=>"ghi" ) : 有沒有什麼函式或做法可以簡便的取出同一行的元素呢 : 例如:a[0][1],a[1][1],a[2][1] 這個如何? $row1=array_map(create_function('$x','return $x[1];'),$a); -- 在php.net挖了好一陣子才挖到這個東西... -- 'You've sort of made up for it tonight,' said Harry. 'Getting the sword. Finishing the Horcrux. Saving my life.' 'That makes me sound a lot cooler then I was,' Ron mumbled. 'Stuff like that always sounds cooler then it really was,' said Harry. 'I've been trying to tell you that for years.' -- Harry Potter and the Deathly Hollows, P.308 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.28.92 ※ 編輯: LPH66 來自: 140.112.28.92 (11/02 10:06)