Skip to content
Advertisement

calculating button size using foreach

I follow the example along the PHP and MySQL Web Development by Luke Welling and Laura Thomson. in chapter 6 there a //calculate button size that has each()function that deprecated in 7.2. According to the Visual studio hint. I could use foreach loop instead instead of each().

JavaScript

Advertisement

Answer

I could use foreach loop instead instead of each().

Yes you can use foreach instead of each() as

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement