<?php $key = 'peach'; $var['price_$key'] = 120; define( 'ORANGE' , ' price_orange' ); $var[ORANGE] = 86; print_r( $var ); ?>