L
L
lebedevnews2015-11-16 13:47:54
PHP
lebedevnews, 2015-11-16 13:47:54

How to fix php code correctly (error Strict Standards: Only variables should be passed by reference in)?

function GET()
{
  $keys = func_get_args();
  
  if($keys)
    return getElement(getGet(), $keys);
  else
    return count(getGet());
}

After switching to a new version of php, an error appeared. Help fix it. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shagguboy, 2015-11-16
@shagguboy

$getGet = getGet();
if($keys)
return getElement($getGet , $keys);
else
return count($getGet);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question