[ create a new paste ] login | about

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

PHP, pasted on Jan 6:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
	$arr = array("something here", "foo" => "something else", "bar" => array( "nested" => "temp", 5232), 3434);
	
	$s = serialize($arr);
	
	for( $i = 1; $i <= 100; $i++ )
	{
		$s2 = serialize($arr);
		if( $s2 != $s )
		{
			echo "They are not always the same";
			break;
		}
		if($i == 100)
		{
			echo "They are always the same";
		}
	}
?>


Output:
1
They are always the same


Create a new paste based on this one


Comments: