This is a collection of questions that come up every now and then about syntax in PHP. This is also a Community Wiki, so everyone is invited to participate in maintaining this list.
It used to be hard to find questions about operators and other syntax tokens.¹
The main idea is to have links to existing questions on Stack Overflow, so it's easier for us to reference them, not to copy over content from …
我实际上不知道如何描述我想要的东西,但我会告诉你:
例如:
$data1 = "the color is";
$data2 = "red";
Run Code Online (Sandbox Code Playgroud)
我应该做什么(或处理)所以$ result是$data1和$data2?的组合?
期望的结果:
$result = "the color is red";
Run Code Online (Sandbox Code Playgroud)