I will echo blade variable in blade variable
The reason is you are using blade tags inside of PHP tags.
When you assign the variable $myDBstr you are assigning it as a string, drop the quotes and the curly brackets.
You code should looks like this
<?php
$myNumber1 = "0001";
$myNumber2 = "0002";
$myNumber3 = "0003";
$myDBstr = $myNumber2;
?>
PHP can only see this, "{{$myNumber2}}" as a string
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community