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変数のタイプを指定する必要がないことは知っていますが、これを行うことはできますか? 初期化せず、キャストを入力するだけです。
class A { .... } class B { public var foo= A; }
ありがとう !
これを行うことができます(文字列)$ a; その強制的に、コードはこのタイプを受け取ります。
settype() PHP 関数をお探しですか?