-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
  • 26,923
  • 21
  • 73
  • 125
deep.er
  • 11
  • 3

1 Answers1

0

You have to specify either

${$args[1]}

or

${$args}[1]

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

Scuzzy
  • 11,780
  • 1
  • 44
  • 45