Sunday, 12 April 2015 11:29

Check on the value of using preg_match

Written by
Rate this item
(2 votes)

Check on the value (STRING) using preg_match

<?php
if (is_string($resolve)) {
    $resolve = ( preg_match("/false|no|off/i", $resolve) ) ? false : true;
}
Read 650 times Last modified on Sunday, 12 April 2015 11:31
Admin

Live and Be Free