Re: [PATCH] Notice on array to string convertion
| From: | Patrick ALLAERT | Date: | Thu, 02 Jun 2011 13:28:12 +0000 |
| Subject: | Re: [PATCH] Notice on array to string convertion | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52768@lists.php.net to get a copy of this message | ||
2011/6/2 Hannes Magnusson <hannes.magnusson@gmail.com>:
> How about making it useful rather then just throwing an notice?
> Recursive implode maybe? Or json/php serialized? :)
As already mentioned, that would be a much bigger BC break which would
requires RFC, voting, ...
Not that I am against, the thing is that it is difficult to know how
this would have to be rendered. Some will prefer json, others a
recursive join with ",", and so on.
For the simplicity, I think it is best to let the user decide on which
format to transform an array by explicitly call a function on it.