Sunday, 12 April 2023 11:29
Check on the value of using preg_match
Check on the value (STRING) using preg_match
<?php
if (is_string($resolve)) {
$resolve = ( preg_match("/false|no|off/i", $resolve) ) ? false : true;
} Check on the value (STRING) using preg_match
<?php
if (is_string($resolve)) {
$resolve = ( preg_match("/false|no|off/i", $resolve) ) ? false : true;
}