[ create a new paste ] login | about

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

PHP, pasted on Dec 26:
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
$a = json_decode('{"id":"10000000000000000"}');
$b = json_decode('{"id":"10000000000000001"}');

$ida = $a->id;
$idb = $b->id;

var_dump($a);
var_dump($b);

if (strcmp($ida, $idb)==0) {
  echo 'a==b';
}


Output:
1
2
3
4
5
6
7
8
object(stdClass)#1 (1) {
  ["id"]=>
  string(17) "10000000000000000"
}
object(stdClass)#2 (1) {
  ["id"]=>
  string(17) "10000000000000001"
}


Create a new paste based on this one


Comments: