如何最有效地将一个值数组转换为键数组?我真的很想避免使用任何foreach循环...$in = array( 'red', 'green', 'blue' ); 转换为$out = array( 'red' => NULL, 'green' => NULL, 'blue' => NULL );