Answer the question
In order to leave comments, you need to log in
How in php, Codeigniter to correctly get key value?
from the front I send serializeArray
Further in the controller I bring the key / value to the form
$answer = array();
for ($i = 0; $i < count($this->request); $i++){
$obj = array();
$name = $this->request[$i]->name;
$obj["$name"] = $this->request[$i]->value;
array_push($answer, (object)$obj);
}
$login_partners = array_search('login_partners', $answer);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question