Concatenating Strings in PHP and JavaScript
Combining two strings into one string is easy with both PHP and JavaScript. In PHP: $string1 = ‘Hello’; $string2 = ‘World!’; $string3 = $string1.’ ‘.$string2; echo $string3; // prints – Hello World! In JavaScript: string1 = ‘Hello’ string2 = ‘World!’ string3 = string1 + ‘ ‘ + string2 alert(string3) // prints – Hello World! in […]
Concatenating Strings in PHP and JavaScript Read More »