PHP 裡的暫存變數

裡我們常用 $_ 當作變數 (很多情況下常常被拿來用,像是 foreach (@array) 內的變數名稱),所以就有人想到在 裡「模擬」這樣的行為:

文章內提到,在 PHP 內 ${0} 是合法的變數,變數名稱就是 0。以此當作暫存變數,寫起來會比 $foo$bar,或是 $tmp 舒服很多?

This entry was posted in Computer, Murmuring, Programming, Software. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *