I’m not taking about programming in php but php itself.
Is it possible that creators of php will make echo to dump for example arrays like
the var_dump does?
I’m not taking about programming in php but php itself. Is it possible that
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you mean if
echogets passed a variable that can not be displayed as a string, show a dump, instead of the current behaviour of showing its data type (e.g.Array)?That would indeed make sense, but also be dangerous: What if an object contains data that the end user is not supposed to see?
I doubt the
echofunction (or, to be more exact, the string parsing functions of PHP) will undergo such a radical change, for exactly this reason.