Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
間に機能的な違いはありますか
file_put_contents( '/Users/jake/Development/testing.log', ob_get_clean(), FILE_APPEND );
と
file_put_contents( '/Users/jake/Development/testing.txt', ob_get_clean(), FILE_APPEND );
?
両方のファイルを崇高なテキスト 2 で開くことができますが、拡張子の違いがわかりません。
いいえ違いはありません。どちらでも使用できます。慣例として、目的のログ ファイルを表示するには、.log 拡張子を使用します。
はい、通常は任意のテキスト エディターで開くことができます。