[lang-ref] ( get_value_by_key ) ( php )

<?php
public function testGetValueByKey(): void
{
	// $d[$k]
	$d = [ 'A' => 1, 'B' => 2, 'C' => 3 ];

	$this->assertSame(1, $d['A']);
}