相关疑难解决方法(0)

Reference — What does this symbol mean in PHP?

What is this?

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.

Why is this?

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 …

php arguments symbols operators

4314
推荐指数
21
解决办法
63万
查看次数

如何在PHP中将两个字符串组合在一起?

我实际上不知道如何描述我想要的东西,但我会告诉你:

例如:

$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)

php string variables combinations

127
推荐指数
9
解决办法
46万
查看次数

使用"+ ="按字符串中的项目

有人能说出我做错了什么

$str = "";
$str += "Was het maar vrijdag";
$str += "Was het maar zaterdag";
echo $str;
Run Code Online (Sandbox Code Playgroud)

这个回报0

php

-5
推荐指数
1
解决办法
121
查看次数

标签 统计

php ×3

arguments ×1

combinations ×1

operators ×1

string ×1

symbols ×1

variables ×1