1. Go to this page and download the library: Download rundiz/serializer library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rundiz / serializer example snippets
$Serializer = new \Rundiz\Serializer\Serializer();
$serialized_string = 's:54:"this is a string. สตริงภาษาไทย";';
$faked_serialized_string = 's:12:"fake serialized string";';
var_dump($Serializer->isSerialized($serialized_string);// true
var_dump($Serializer->isSerialized($faked_serialized_string);// false
$serialized_string = 's:54:"this is a string. สตริงภาษาไทย";';
var_dump(\Rundiz\Serializer\SerializerStatic::isSerialized($serialized_string));// true