-1
I’m working on a project that I’ve already picked up in progress and I’m having trouble displaying data for certain validations. I need to understand what this line does:
foreach ($queries as $id => $query)
if (!in_array($id, array('pagina', 'codigo', 'cidade', 'finalidade', 'tipo', 'imovel', 'bairro', 'dormitorios', 'valorMin', 'valorMax')) || empty($query))
unset($queries[$id]);
Can anyone "translate"?
You are asking a lot of questions in a short time, so there is no problem, however your questions are getting badly formatted, please waste a little more time writing your questions, so we don’t have to fix them. Abs.
– Ricardo
Another remark regarding your questions is that they could be answered with a simple query to the PHP documentation. Any and all PHP functions are very well documented, so you should have no trouble understanding simpler code snippets :)
– Rodrigo Rigotti