<?php $purchaseSnapshot = ['type' => 'rock']; var_dump($purchaseSnapshot['type'] ?: $purchaseSnapshot['type']);
You have javascript disabled. You will not be able to edit any code.