2011年12月22日 星期四

function裡藥用外部變數要在裡面加global

$count_title=0;
function for_count_use(){
global $count_title;//要用外部變數要這樣用
$count_title++;
echo $count_title;
}

沒有留言:

張貼留言