Answers for "how to check if a tring is in my cntence php"

PHP
3

if text contains word then in php

if (strpos($haystack,$needle) !== false) {
    echo "$haystack contains $needle";
}
Posted by: Guest on July-16-2020
-1

check if string contains substring php 8

str_contains('STRING', 'SUB_STRING');
Posted by: Guest on December-06-2020

Code answers related to "how to check if a tring is in my cntence php"

Browse Popular Code Answers by Language