Need more info. But going on intuition...
You did mean "print_r" and not "printr", didn't you? First is a function, second ain't.
I think you'll get "resource" sometimes when you try echo'ing a resource like a file handle or something.
Really, seeing some code would help here.