[ create a new paste ] login | about

Link: http://codepad.org/TxCyCtxa    [ raw code | output | fork ]

PHP, pasted on Oct 18:
1
2
3
4
5
6
7
<?php

$a = 'test';
$b = &$a;
$b = unserialize(serialize($b));
$a = 'failed';
echo $b; //returns 'test'


Output:
1
failed


Create a new paste based on this one


Comments: