Support the ongoing development of Laravel.io →
posted 10 years ago
Blade
Last updated 2 years ago.
0

I will echo blade variable in blade variable

Last updated 2 years ago.
0

$myNumber1-3 are dynamic

Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.