PHP Classes
elePHPant
Icontem

Just note

Recommend this page to a friend!

      PHP PDO database class  >  All threads  >  Just note  >  (Un) Subscribe thread alerts  
Subject:Just note
Summary:Just note
Messages:2
Author:Vaidas Visk
Date:2015-06-04 17:16:54
 

 


  1. Just note   Reply   Report abuse  
Vaidas Visk - 2015-06-04 17:16:54
return $this->results()[0]; is allowed only in PHP >=5.4. It's called "array dereferencing".

instead you should use:

$temp = $this->results();
return $temp[0];

  2. Re: Just note   Reply   Report abuse  
mohammad anzawi - 2015-06-05 21:28:37 - In reply to message 1 from Vaidas Visk
Thank you for this good tracking :)