Title: function each() deprecated in PHP 7.2
Last modified: July 2, 2018

---

# function each() deprecated in PHP 7.2

 *  [lllor](https://wordpress.org/support/users/lllor/)
 * (@lllor)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/function-each-deprecated-in-php-7-2/)
 * hello,
    I noticed that wordpress still uses the function each() which is deprecated
   in PHP 7.2.
 * [http://php.net/manual/en/migration72.deprecated.php](http://php.net/manual/en/migration72.deprecated.php)
 * wp-admin\includes\class-ftp.php line 778
 * Cheers

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 11 months ago](https://wordpress.org/support/topic/function-each-deprecated-in-php-7-2/#post-10455227)
 * You may want to watch/follow this ticket:
 * [https://core.trac.wordpress.org/ticket/44489#ticket](https://core.trac.wordpress.org/ticket/44489#ticket)
 *  Thread Starter [lllor](https://wordpress.org/support/users/lllor/)
 * (@lllor)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/function-each-deprecated-in-php-7-2/#post-10457888)
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘function each() deprecated in PHP 7.2’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [lllor](https://wordpress.org/support/users/lllor/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/function-each-deprecated-in-php-7-2/#post-10457888)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
