7
¿Cuál es la forma MÁS EFICIENTE de tener una matriz de valores y convertirla en una matriz de claves? realmente me gustaría evitar cualquier bucle foreach ...Array PHP - Convertir valores de matriz en Keys
$in = array(
'red',
'green',
'blue'
);
EN
función de$out = array(
'red' => NULL,
'green' => NULL,
'blue' => NULL
);
lectura del manual es siempre una buena idea. http://www.php.net/manual/en/ref.array.php – vascowhite
@AlexV: Vea el enlace en mi último comentario, y mire [aquí] (http://meta.stackexchange.com/questions/16721/how-do-accept-rate-work) también. – Travesty3