Edit report at https://bugs.php.net/bug.php?id=63632&edit=1
ID: 63632 Comment by: bensor987 at neuf dot fr Reported by: bensor987 at neuf dot fr Summary: $var =. 'val'; Status: Open Type: Feature/Change Request Package: Variables related Operating System: All PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Erm. Maybe we could use another syntax for this suggestion ? Previous Comments: ------------------------------------------------------------------------ [2012-11-28 10:57:51] inefedor at gmail dot com Collides with: $asd =.4; echo $asd; Output should be: 0.4 ------------------------------------------------------------------------ [2012-11-28 09:57:01] bensor987 at neuf dot fr Description: ------------ Why not add "$var =. 'val';" syntax ? It would concatenate 'val' before $var. Actually, you have to do this <?php $var = 'val' . $var; ?> My suggestion make the code shorter : <?php $var =. 'val'; ?> Test script: --------------- <?php $a = "Hello "; $b = $a . "World!"; // now $b contains "Hello World!" $c = "World! " . $a; // now $c contains "World! Hello " $a = $b = "Hello "; $a .= "World!"; // now $a contains "Hello World!" $b =. "World! "; // now $b contains "World! Hello " ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63632&edit=1