<?php
$mykey = uniqid("\x00");
$var[$mykey] = TRUE;
foreach($var as $key => $val)
{
if ($key === $mykey) {
echo 'You got it right';
} else {
echo 'You got it wrong';
}
}
- Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.5, 7.1.7 - 7.1.33, 7.2.3, 7.2.5 - 7.2.6, 7.2.8 - 7.2.9, 7.2.11, 7.2.16 - 7.2.19, 7.2.23 - 7.2.24, 7.3.4 - 7.3.9, 7.3.11 - 7.3.12
- You got it right
- Output for 7.1.0, 7.1.6, 7.2.0 - 7.2.2, 7.2.4, 7.2.7, 7.2.10, 7.2.12 - 7.2.15, 7.2.20 - 7.2.22, 7.3.0 - 7.3.3, 7.3.10
- You got it wrong
preferences:
177.45 ms | 403 KiB | 221 Q