PHP

How to append a string in PHP

By using Concatenation assignment operator(.=) we can append a string with another string.

<?php
$string="Welcome to";
$string.="PHPGurukul";
echo $string;
?>

Output will be  : Welcome to PHPGurukul

Recommended Tutorials for you


Related posts

How to maintain the password history using php and mysql

Anuj Kumar

Significance and Advantages of PHP Web Development

Anuj Kumar

PHP – Data Types

Anuj Kumar

JQuery Ajax Tutorial – Learn About Developing Effective Next Generation Web Application

Anuj Kumar

PHP Echo / Print

Anuj Kumar

Array in PHP

Anuj Kumar

How to convert number to String in PHP

Anuj Kumar

Server Side form Validation in PHP

Anuj Kumar

4 comments

Tanmay Upadhyay November 10, 2018 at 5:13 am

Sir You can api Post..Please send your blog..because i have need

Reply
Anuj kumar November 10, 2018 at 5:16 am Reply
Tanmay Upadhyay October 3, 2018 at 2:10 pm

Sir You can api Post..Please send your blog..because i have need

Reply
Anuj kumar October 3, 2018 at 5:00 pm Reply

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.