[ create a new paste ] login | about

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

PHP, pasted on Nov 27:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
$a = array(
    '1' => 12,
    '3' => 14,
    '6' => 11
);
$b = array(
    '1' => 12,
    '3' => 14,
    '6' => 11
);
echo ($a === $b) ? 'they\'re same' : 'they\'re different';

echo "\n";
$b['1'] = 11;

echo ($a === $b) ? 'they\'re same' : 'they\'re different';


Output:
1
2
they're same
they're different


Create a new paste based on this one


Comments: