從字面上來說就是"匿名函數" ,講白一點就是沒有名字的函數。 直接看code 比較快。 <?php $foo = function(){ return 'foo'; }; //別忽略了結尾的; echo $foo();.
確定! 回上一頁