I'm doing a print_r on a array stored on a session variable and for some unknown reason it's adding a number after the array prints.
Example:
Array
(
[0] => 868
[userid] => 868
)
1
If I do a print_r directly in the function itself and before the variable gets stored on session variable, it doesn't add that number 1.
Solution:
Almost at the same time as Paolo answered my question correctly I found the causing code.
A simple echo on print_r
Well, there we go, sometimes I guess we blind for minutes and just don't see stuff. Oh we coders...daaa