我是使用 Laravel Blade。我想要在 Blade 代码中将一个 PHP 变量与字符串连接起来。
例如在 JS 中:
<img class="img-responsive" src='http://example.com/'+ user_id +'/picture?type=square';/>
如何使用PHP变量来编写此内容?
<img class="img-responsive" src='http://example.com/'. {{ $user_id}} .'/picture?type=square';/>