Continue reading Partial string search in an array using PHP

Partial string search in an array using PHP

I couldn’t find an out-of-the-box PHP function to do a partial string search in an array of strings. So I had to write a simple helper function using strpos for a WordPress project, I am working on. Partial string search in an array using strpos Here is the gist in case you need it. Let…

Read more Partial string search in an array using PHP 0 Comment on Partial string search in an array using PHP
Continue reading Laravel Bail – Stopping On First Validation Failure

Laravel Bail – Stopping On First Validation Failure

Today let’s see what Laravel Bail rule does for you ๐Ÿ™‚ Out of the box, Laravel provides many useful and generic validation rules. But in my opinion the Laravel documentation is not that good. Sometimes we may not find the required thing in documentation but still it is available through code! Last week I went…

Read more Laravel Bail – Stopping On First Validation Failure 4 Comments on Laravel Bail – Stopping On First Validation Failure