PHP - Concatenate Strings
Сообщение 2024-05-17 07:30:24
0
3Кб
String Concatenation
To concatenate, or combine, two strings you can use the .
operator:
The result of the example above is HelloWorld
, without a space between the two words.
You can add a space character like this:
An easier and better way is by using the power of double quotes.
By surrounding the two variables in double quotes with a white space between them, the white space will also be present in the result:
Complete PHP String Reference
For a complete reference of all string functions, go to our complete PHP String Reference.
Поиск
Категории
- Art
- Causes
- Crafts
- Dance
- Drinks
- Film
- Fitness
- Food
- Игры
- Gardening
- Health
- Главная
- Literature
- Music
- Networking
- Другое
- Party
- Religion
- Shopping
- Sports
- Theater
- Wellness
Больше
PHP Create Arrays
Create Array
You can create arrays by using the array() function:
ExampleGet your...
تطورات التعلم الآلي وتأثيرها على مستقبل العمل
مقدمة: في ظل التطورات السريعة للتكنولوجيا والابتكار، أصبح التعلم الآلي...
PHP Update Array Items
Update Array Item
To update an existing array item, you can refer to the index number for...
PHP Magic Constants
PHP Predefined Constants
PHP has nine predefined constants that change value depending on where...
PHP Multidimensional Arrays
In the previous pages, we have described arrays that are a single list of key/value pairs....