My print_r($view) function yields:
View Object
(
[viewArray:View:private] => Array
(
[title] => Projet JDelage
)
)
1 <--------------
What does the “1” at the end mean? The PHP manual isn’t very clear on how to parse the output of print_r.
You probably have
echo print_r($view). Remove theechoconstruct. And… what need do you have to parse its output? There are certainly much better ways to solve your problem.