1
Hello, on my system I get a request in JSON format and soon after it is decoded.
This is the mandatory model that the requisition must have.
array (
"client_id" => "",
"credentials" => array("email" => "", "password" => ""),
"security_questions" => array("1" => "", "2" => "", "3" => "");
"security_answers" => array("1" => "", "2" => "", "3" => "");
)
How can I check if the request received by my system follows the required model and also check if there is an empty value without using multiple IF/IF ELSE? The goal would be to make the code smaller.