mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
21 lines
573 B
PHP
21 lines
573 B
PHP
--TEST--
|
|
Test serialize_precision (part 1)
|
|
--INI--
|
|
serialize_precision=10
|
|
--FILE--
|
|
<?php
|
|
/* Prototype : proto string serialize(mixed variable)
|
|
* Description: Returns a string representation of variable (which can later be unserialized)
|
|
* Source code: ext/standard/var.c
|
|
* Alias to functions:
|
|
*/
|
|
/* Prototype : proto mixed unserialize(string variable_representation)
|
|
* Description: Takes a string representation of variable and recreates it
|
|
* Source code: ext/standard/var.c
|
|
* Alias to functions:
|
|
*/
|
|
|
|
var_dump(serialize(0.1));
|
|
?>
|
|
--EXPECTF--
|
|
string(6) "d:0.1;"
|