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.
php ファイル内の非クラス関数の範囲を制限し、それが配置されている php ファイル内でのみアクセスできるようにする方法はありますか? C が関数で static キーワードを使用してこれを達成する方法と同様です。PHP では static はクラス専用のようです。ファイル内の関数のみがアクセスできるヘルパー関数を隠したい。ありがとう。