> Online tutorial : String Operators in php
Showing posts with label String Operators in php. Show all posts
Showing posts with label String Operators in php. Show all posts

String Operators in php


 String Operators
As we have already seen in the Echo Lesson, the period "." is used to add two strings together, or more
technically, the period is the concatenation operator for strings. 


PHP Code:


$a_string = "Hello";
$another_string = " Billy";
$new_string = $a_string . $another_string;
echo $new_string . "!";

Display:


Hello Billy!