|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-03-31 06:39 UTC] requinix@php.net
-Summary: string interpolation
+Summary: string interpolation with ${}
-Package: PHP Language Specification
+Package: Scripting Engine problem
-Operating System: windows
+Operating System:
-PHP Version: 5.5.33
+PHP Version: 7.0.5
[2016-03-31 06:39 UTC] requinix@php.net
[2023-05-16 10:20 UTC] autoupdatedaily at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
Description: ------------ The unstable result to use "{}" in string interpolation.It's just because useing space. Test script: --------------- error_reporting(E_ALL); define('great','my'); $great='fantastic'; $my='my value'; echo "This is ${great }<br/>";//output:my value echo "This is ${ great}<br/>";//output:my value echo "This is ${ great }<br/>";//output:my value echo "This is ${great}<br/>";//output:fantastic Expected result: ---------------- none Actual result: -------------- none