-1

When I changed from php 5.6 to php 7.4 I am getting this error:

PHP Parse error: syntax error, unexpected '[', expecting ';' or ',' in ./dbdrivers/odbc.php IN $$args[1]

function &db_fetch_row ($args=array()){
     global $$args[1];

     switch(count($args)) {
     case 2:
             return (odbc_fetch_into($args[0], $args[1]));
     default:
             return (odbc_fetch_array($args[0]));
     }
}
Dharman
  • 30,962
  • 25
  • 85
  • 135
deep.er
  • 9
  • 4

1 Answers1

0

You have to specify either

${$args[1]}

or

${$args}[1]

https://www.php.net/manual/en/language.variables.variable.php

Scuzzy
  • 12,186
  • 1
  • 46
  • 46