-
Notifications
You must be signed in to change notification settings - Fork 0
isSerial
Corey Avis edited this page Sep 23, 2026
·
2 revisions
Validates if the provided data is formatted as a PHP serialized string.
isSerial(mixed $data = null): bool
array (mixed) : The data to validate as serialized.
(bool)
: Returns true on success and false on failure.
$cphp->isSerial('a:1:{i:0;s:5:"value";}') = true
$cphp->isSerial([0 => 'value']) = false
$cphp->isSerial(1) = false
- Logs a notice if the argument is empty.
Home | CoreyPHP | Validation