Req #80619 [Com]: New String Operators
| From: | rtrtrtrtrt at dfdfdfdf dot dfd | Date: | Tue, 12 Jan 2021 17:31:18 +0000 |
| Subject: | Req #80619 [Com]: New String Operators | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231512@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80619&edit=1
ID: 80619
Comment by: rtrtrtrtrt at dfdfdfdf dot dfd
Reported by: 2fby7j8dpm at liamekaens dot com
Summary: New String Operators
Status: Open
Type: Feature/Change Request
Package: Unknown/Other Function
PHP Version: Next Major Version
Block user comment: N
Private report: N
New Comment:
> =. to add a string to the RIGHT of the current string
yeah, more typo pitfalls
> =.= short for sprintf
to gain what
> .=. to add a string to the right and to the left of the current string
what about $x = "{$y} your-string {$y}"
https://blog.blackfire.io/php-7-performance-improvements-encapsed-strings-optimization.html
Previous Comments:
------------------------------------------------------------------------
[2021-01-12 17:24:59] 2fby7j8dpm at liamekaens dot com
Description:
------------
Adding some new string operations would be nice:
=. to add a string to the RIGHT of the current string
=.= short for sprintf
.=. to add a string to the right and to the left of the current string
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80619&edit=1