<?php
function getKeyFromName($array, $name) {
}
$data = [
[
"nome" => "ACRILEX TECIDO 37ML AMARELO CANARIO",
"preco" => "1.65",
"quantidade" => "1",
"imagem" => "Loja/imgPQ/4140589589.gif"
],[
"nome" => "ACRILEX TECIDO 37ML AMARELO LIMÃO",
"preco" => "1.65",
"quantidade" => "1",
"imagem" => "Loja/imgPQ/4140504504.gif"
]
];
echo getKeyFromName($data, "ACRILEX TECIDO 37ML AMARELO LIMÃO");
PD9waHAKCmZ1bmN0aW9uIGdldEtleUZyb21OYW1lKCRhcnJheSwgJG5hbWUpIHsKICAgIHJldHVybiBhcnJheV9zZWFyY2goJG5hbWUsIGFycmF5X2NvbHVtbigkYXJyYXksICJub21lIikpOwp9CgokZGF0YSA9IFsKCVsKCQkibm9tZSIgPT4gIkFDUklMRVggVEVDSURPIDM3TUwgQU1BUkVMTyBDQU5BUklPIiwKICAgICAgICAicHJlY28iID0+ICIxLjY1IiwKICAgICAgICAicXVhbnRpZGFkZSIgPT4gIjEiLAogICAgICAgICJpbWFnZW0iID0+ICJMb2phL2ltZ1BRLzQxNDA1ODk1ODkuZ2lmIgogICAgXSxbCgogICAgICAgICJub21lIiA9PiAiQUNSSUxFWCBURUNJRE8gMzdNTCBBTUFSRUxPIExJTcODTyIsCiAgICAgICAgInByZWNvIiA9PiAiMS42NSIsCiAgICAgICAgInF1YW50aWRhZGUiID0+ICIxIiwKICAgICAgICAiaW1hZ2VtIiA9PiAiTG9qYS9pbWdQUS80MTQwNTA0NTA0LmdpZiIKICAgIF0KXTsKCmVjaG8gZ2V0S2V5RnJvbU5hbWUoJGRhdGEsICJBQ1JJTEVYIFRFQ0lETyAzN01MIEFNQVJFTE8gTElNw4NPIik7