I'm using CakePHP (v3.0) and I want to show on screen the variable value.
I have tried to use print_r() function, but not always runs..
Whats would be the best option?
CakePHP comes with pr() function you can use that
pr($numbers); die;$numbers = [1,2,3]; pr($numbers);die("text"); did that work ?I always use cake's debug() function, but you should consider using DebugKit for debugging your app.