PHPではメソッドのオーバーロードができない。 下記コードはエラーになる。 class Foo { private $_file_path = null; function __construct () { } function __construct ($file_path) { $this->_file_path = $file_path; } }
PHPではメソッドのオーバーロードができない
PHPではメソッドのオーバーロードができない
PHPではメソッドのオーバーロードができない
PHPではメソッドのオーバーロードができない。 下記コードはエラーになる。 class Foo { private $_file_path = null; function __construct () { } function __construct ($file_path) { $this->_file_path = $file_path; } }