PHP Concatenation

Last update on October 4, 2009 10:13 AM by jak58
Published by jak58

PHP Concatenation










PHP allows you to concatenate strings with the "."

$concatenation= $a . $b;


Or to affect, in the variable $ a, the value of the concatenation of $ a and $ b:

$a.=$b;


To concatenate strings and variables it is sufficient to proceed as follows:

$concatenation= 'La variable b vaut : ' . $b;
Best answers for « PHP Concatenation » in :
String concatenation Show String concatenation String concatenation is the process of joining two character chains or strings end to end into one. Under programming languages, for example , PHP, concatenation is done with “..” and for javascript, it is...
How to easily display PHP/HTML codes in your webpages Show How to easily display PHP/HTML codes in your webpages What code to use? If you want your visitors to be able to see the source codes of your webpage, there is a very easy way to do so. Normally, all you have to do in a HTML file using...
[PHP] Notice: Undefined index Show [PHP] Notice: Undefined index When using $ _POST or $ _GET to retrieve the variables from a form , you may encounter this error: Notice: Undefined index 'fields of the table' in 'path of php file being executes' on line 'current...
Concatenate vectors or matrices under Matlab ShowConcatenate vectors or matrices under Matlab Horizontal concatenation Vertical concatenation Further calculations Concatenation of variables Matlab is define as the combination these variables in a single (vector or matrix)....
Parsing a binary file in PHP ShowParsing a binary file in PHP When using low level languages like C or Pascal, it is a common procedure, to data in a binary file (a record that can't be translated into text). Using C language, suppose you want to save the value...
Connecting to Oracle via php ShowConnecting to Oracle via php Settings Requirements Example of code Settings Below is an article based on an example of connection to an Oracle database through a php script. However it is not designed to configure your oracle...
Download PHP Edit ShowPHPEdit is an environment of inserted development (IDE) under Windows for language PHP. It gives a big number of functions allowing to develop more efficiently: Syntactic coloring Auto-complete of functions integrated Debugger PHP
Download PHP FTP Synchronizer ShowThe update of web site is as complex as its design. Therefore, to update a site, it is necessary to use the right tool with the right parameters and good programming knowledge. PHP FTP Synchronizer is an application for updating a website from local...
HTML forms ShowForms Interactive forms let web page authors give their pages interactive elements, such as for receiving messages from their readers, much like the reply cards found in some magazines. The reader enters information by filling in fields or clicking...
HTML Markup ShowHTML, A Markup Language HTML is not a programming language. Rather, it is used for describing the layout and format of content, written in the form of simple text. An HTML page is a basic text file containing tags for specifying text format,...
Spreadsheets - Cell Selection ShowCell Selection Spreadsheets are powerful tools for working with data. However, to work with data, it is necessary to have tools to rapidly choose the required cells. Line Selection An entire line can be chosen by clicking directly on the line...