計數器 (2):文字型的計數器 教學課程 - 2010-05-11 - 0 Comments 此範例用到的檔案處理函式: file_get_contents(檔名) 讀取檔案的內容 file_put_contents(檔名, 資料) 將資料寫入檔案內 file_exists(檔名) 檢查檔案是否存在 此外,檔名在此程式中一再重覆出現,可將內另存在變數內,方便程式修改,此稱為參數定義,此程式範例如下: Tags: 0982網際網路程式設計 Share this story