Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

string match in php

//str_contains ( string $haystack , string $needle ) : bool

if (str_contains('Foo Bar Baz', 'Foo')) {
  echo 'Found';
}
 
PREVIOUS NEXT
Tagged: #string #match #php
ADD COMMENT
Topic
Name
5+1 =