<?php
    $c=9223372036854775806;
    if($array[++$c]=1){
    if($array[]=1){
    echo "nonono";
    }
    else{
    echo "yesyesyes";
    }
    }
    ?>

    输出:
    yesyesyes
    PHP Warning: Cannot add element to the array as the next element is already occupied in /usercode/file.php on line 4

    当php中array数组第9223372036854775807存在数值时,想要再插入一个数字就会报错
    所以题目中++$c,先加上1,变成9223372036854775807,然后执行最内层的if时,因为没有地方可以开数组了,就返回NULL,即false,这样一来就可以执行else里的语句,echo “yesyesyes”