diff --git a/samples/sample.php b/samples/sample.php index 985e9fc..805b644 100644 --- a/samples/sample.php +++ b/samples/sample.php @@ -7,11 +7,15 @@ require_once __DIR__ . '/../vendor/autoload.php'; $value = ['a', 'b', 'c']; +printf('Original value: %s', PHP_EOL); +var_dump($value); $serializer = SerializerFactory::bySerializedContentType(JsonSerializer::SERIALIZED_CONTENT_TYPE); $serializedValue = $serializer->serialize($value); +printf('Serialized value using %s: %s', 'JsonSerializer', PHP_EOL); var_dump($serializedValue); $serializer = SerializerFactory::bySerializedContentType(PhpSerializer::SERIALIZED_CONTENT_TYPE); $serializedValue = $serializer->serialize($value); +printf('Serialized value using %s: %s', 'PhpSerializer', PHP_EOL); var_dump($serializedValue); \ No newline at end of file