Three New String Functions In PHP
Let’s talk about new string functions in php.
Photo by Ben Griffiths on Unsplash
str_contains()
<?php$haystack = 'Twinkle Twinkle Little Star';$needle = 'Star';
if(str_contains($haystack, $needle)){ // needle exists in haystack}
str_contains...
mohasin.hashnode.dev1 min read