the single quotation dosnt act same as double quotation when trying to print a value stored in defined variable.
assume:
{{ Form::text('name_fr$id', null, array('class' => 'form-control')) }}
this will not print the value in $id
BUT:
{{ Form::text("name_fr$id", null, array('class' => 'form-control')) }}
will work just fine.
Then why not use double quotes?
("name_fr {$id}")
Here's the documentation to prove valid PHP.
http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.single
It's a standard PHP behavior.
thank you guys, much appreciated
Most helpful comment
Here's the documentation to prove valid PHP.
http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.single