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

Almost every working example I have seen uses the 2nd example you have. I have implemented it and it works great. I haven't noticed any performance issues at all either.

Last updated 2 years ago.
0

Ok perfect, thanks.

Last updated 2 years ago.
0

Oh except I am using createMatcher not createPlainMatcher, it gives you a second variable if you need it.

pattern = createMatcher(@swapMe('passMe'))

will return passMe in $2 of pattern

preg_replace($pattern, '$1'.$replace.'$2', $value); });

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Metrakit metrakit Joined 25 May 2014

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.