How to use Laravel function in regular php -


this pretty basic question. have function in in laravel:

{{this::function('arg1', 'arg2')}}

now need use inside of echo in regular php im not sure how these laravel's 1 built:

<?php echo "blablabla this::function('arg1', 'arg2') blabla"; ?> 

how correctly it?

you can use concatenation operator join 3 string values:

echo "blablabla " . this::function('arg1', 'arg2') . " blabla"; 

or make use of fact echo accepts multiple arguments , output of them:

echo "blablabla ", this::function('arg1', 'arg2'), " blabla"; 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -