0

Use variable in string

Is there a way to use placeholders in strings and fill them with values (2.) without using "Hello ". $var ? 1. var $name = "Foobar"; 2. var $str = "Hello {0}", $name;

7th Jan 2017, 12:54 PM
qobus
1 Answer
+ 1
$name = "Foobar"; $str = "Hello $name"; or you can use js angular for this
7th Jan 2017, 1:48 PM
ASNM
ASNM - avatar