Table of Contents
Deprecated: Assigning the return value of new by reference is deprecated
PHP5では、newすると参照になるのに、それを =&
でさらに参照で受け取ろうとしてエラーが出る。
@$obj =& DB();
↓
@$obj = new DB();
Deprecated: Function ereg() is deprecated
ereg関数の代わりに、preg_match関数を使う
ereg("<正規表現文字列>", 変数);
↓
preg_match(<正規表現文字列>", 変数);