Simple array chain for PHP