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
Post a Comment