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

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -