You are here:  » PHP 7.2 Deprecated "each"

Active Forum Topics

PHP 7.2 Deprecated "each"

Submitted by Retro135 on Sun, 2019-08-04 03:17 in

I'm on PHP 7.1, would like to upgrade to 7.2. I'm using 15/09A and MariaDB 5.5.5-10.3.17. While all the PT code uses "foreach" I see "each", that is deprecated in 7.2, used in the jquery & Foundation js code.

Should I replace "each" with "foreach" in those files? Will that be a problem?

Since "each" is in js files, does it matter or not?

Submitted by support on Tue, 2019-08-06 12:30


The code in .js files isn't related to PHP so you shouldn't have any problem upgrading.