public function representationOfMixedHashmap() { $h = new Hashmap(); $h->put('key', 'value'); $h->put('number', 6100); $this->assertEquals('a:2:{s:3:"key";s:5:"value";s:6:"number";i:6100;}', $this->serializer->representationOf($h)); }
public function containsKey_should_return_true_even_for_null_values() { $map = new Hashmap(); $map->put("myKey", NULL); $this->assertTrue($map->containsKey("myKey")); }
if ($user) { ?> <div class="USER"> <h3>You</h3> <img src="https://graph.facebook.com/<?php echo $user; ?> /picture"> </div> <pre><?php if ($user) { try { // Proceed knowing you have a logged in user who's authenticated. // $user_profile = $facebook->api('me/feed&scope=read_stream'); $flist = friendlist($facebook); $H = new Hashmap(); $HUSERLIST = new Hashmap(); $user_id = $facebook->getUser(); $H1 = getid($facebook, $user_id); //1st time get user's // echo array_sum($H->values()); //print_r ($H); $H->putAll($H1); $one = $H1->keys(); $HUSERLIST->put($user_id, $one); //print_r ($one); echo "</br>"; for ($i = 0; $i < count($one); $i++) { //2nd get user's 1st //echo ($one[$i])."</br>"; // echo $i."</br>"; $H2 = getid($facebook, $one[$i]);