Re: Deprecation ideas for PHP 8
| From: | Markus Fischer | Date: | Wed, 23 Jan 2019 07:59:01 +0000 |
| Subject: | Re: Deprecation ideas for PHP 8 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-103789@lists.php.net to get a copy of this message | ||
Hi,
On 22.01.19 21:34, Girgias wrote:
The function takes an optional argument- phpversion (use PHP_VERSION constant)
string $extension, what is the replacement for that?
- intval (for arbitrary base change there exists the math function
base_convert)
I've seen and myself use the following construct a lot to "quickly" convert data within an array:
$data = array_map('intval', $data);
It's really practical because I don't have to write a (more verbose) closure.
I'd argue this applies to the other *val calls too.
Is there a correlation here why you mention the alias join and the actual function implode? I hope you would want to leave either in the language :-) cheers, - Markus- join (alias of implode)Old signatures:- implode (historical signature)