PHP use function return value as array

后端 未结 3 838
悲哀的现实
悲哀的现实 2021-01-22 03:32

Why is it that this works:

        $cacheMatchesNotPlayed = $cache->load(\'externalData\');
        $cacheMatchesNotPlayed = $cacheMatchesNotPlayed[\'matchesN         


        
3条回答
  •  感情败类
    2021-01-22 03:56

    PHP just does not support array dereferencing in the way you have described. Also covered here:

    PHP syntax for dereferencing function result

提交回复
热议问题