Answers for "php check if value exist"

PHP
0

check if value exists in object php

if (property_exists($ob, 'a'))
Posted by: Guest on July-29-2021
0

check exist string in string php

$myString = 'Hello Learn Tech Tips (Zidane)?';
if (strpos($myString, 'Zidane') !== false) {
    echo "This string contains Zidane";
}
Posted by: Guest on November-04-2021

Browse Popular Code Answers by Language