Login   Register  
PHP Classes

Error: Strict Standards:

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      String Delimiter  >  All threads  >  Error: Strict Standards:  >  (Un) Subscribe thread alerts  
Subject:Error: Strict Standards:
Summary:Suggest to fix
Author:Fabio Souza
Date:2013-07-27 21:13:27

  1. Error: Strict Standards:   Reply   Report abuse  
Picture of Fabio Souza
Fabio Souza
2013-07-27 21:13:27
Hi, i get this error:
Strict Standards: Only variables should be passed by reference in C:\www\sgo\manager\lib\string_delimiter.class.php on line 27

26 $pedacosStringOriginal = explode(" ", $string);
27 $tamUltimaPalavraCortada = strlen(end(explode(" ", $novaString)));

fix after change the code like this:

26 $pedacosStringOriginal = explode(" ", $string);
27 $arr = explode(" ", $novaString);
28 $tamUltimaPalavraCortada = strlen(end($arr));

http://wdsdeveloper.blogspot.com.br/2011/04/strict-standards ...