7
__construct
コンストラクタを使用しているときとコンストラクタとしてクラスの名前を使用するときのPHPクラスの違いは何ですか?例えばPHPの2種類のクラスコンストラクタの違いは何ですか?
:
class Some
{
public function __construct($id)
{
....
}
....
}
OR
class Some
{
public function Some($id)
{
....
}
....
}
[PHPマニュアル](http://php.net/manual/en/language.oop5.decon.php)に従って5.3.3で廃止予定です。例2を参照してください。 – mseancole
ありがとうございます。私はそれに応じて私の答えを更新します。 –