Sunday, January 20, 2013

Error Deprecated: Assigning the return value of new by reference is deprecated in

Kali ini ane mau menshare cara mengatasi error pada website. yuk mari

Terkadang saat kita membuat sebuah website muncul beberapa error diantaranya adalah


1. Deprecated: Assigning the return value of new by reference is deprecated in
2. Deprecated: Function split() is deprecated in



untuk meneylesaikan masalah error yang pertama adalah

$this->_ole =& new OLERead();

ubah menjadi

$this->_ole = new OLERead(); (hilangkan tanda "&")

untuk meneylesaikan masalah error yang kedua adalah

ubah splite menjadi explode

contohnya

return(array_comb($k,split(":",gmdate('s:i:G:j:w:n:Y:z:l:F:U',is_null($ts)?time():$ts))));

menjadi

return(array_comb($k,explode(":",gmdate('s:i:G:j:w:n:Y:z:l:F:U',is_null($ts)?time():$ts))));

Unknown

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.

2 comments:

  1. wah akhirnya ini ni yang aku maksud, BERHASIL GAN menghilangkan ERRORNYA

    ReplyDelete
  2. thanks gan atas ilmunya

    ReplyDelete

 

Copyright @ 2017