Obtener un dato de un array en PHP
Бюджет $10-30 USD
Tengo este arreglo , he intentado obtener el valor de confidence , pero no me lo entrega $confidence =$resultDecode2["intents"][0]["intent"]["confidence"][0]."--------";
array(5) {
[
"intents"
]=>
array(1) {
[
0
]=>
array(2) {
[
"intent"
]=>
string(5) "estas"
[
"confidence"
]=>
float(0.44791402816772)
}
}
[
"entities"
]=>
array(0) {}
[
"input"
]=>
array(1) {
[
"text"
]=>
string(7) "Ok! eli"
}
[
"output"
]=>
array(4) {
[
"generic"
]=>
array(1) {
[
0
]=>
array(2) {
[
"response_type"
]=>
string(4) "text"
[
"text"
]=>
string(18) "Claro, estoy aquí"
}
}
[
"text"
]=>
array(1) {
[
0
]=>
string(18) "Claro, estoy aquí"
}
[
"nodes_visited"
]=>
array(1) {
[
0
]=>
string(20) "node_5_1548820400618"
}
[
"log_messages"
]=>
array(0) {}
}
[
"context"
]=>
array(2) {
[
"conversation_id"
]=>
string(36) "30c9343f-4fc3-4880-9378-d513251140b3"
[
"system"
]=>
array(7) {
[
"initialized"
]=>
bool(true)
[
"dialog_stack"
]=>
array(1) {
[
0
]=>
array(1) {
[
"dialog_node"
]=>
string(4) "root"
}
}
[
"dialog_turn_counter"
]=>
int(1)
[
"dialog_request_counter"
]=>
int(1)
[
"_node_output_map"
]=>
array(1) {
[
"node_5_1548820400618"
]=>
array(1) {
[
0
]=>
array(1) {
[
0
]=>
int(0)
}
}
}
[
"branch_exited"
]=>
bool(true)
[
"branch_exited_reason"
]=>
string(9) "completed"
}
}
}
3 фрілансерів(-и) у середньому готові виконати цю роботу за $27
hello, i'm interested in your project. in my precious working years i have finished many succesful projets with 100% customer satisfaction. Good relationship with client is more important than money for me. I am very s Більше
Hola, Si necesitas más información acerca de mi o acerca de los proyectos en los que he trabajado puedes visitar mi página web: [login to view URL]
HI I am experienced in etc I can start right now but i have few doubts and questions lets have a quick chat and get it started waiting for your reply