Title: PHP Deprecated: Array and string offset access syntax with curly braces…
Last modified: January 22, 2020

---

# PHP Deprecated: Array and string offset access syntax with curly braces…

 *  [podpirate](https://wordpress.org/support/users/podpirate/)
 * (@podpirate)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-deprecated-array-and-string-offset-access-syntax-with-curly-braces/)
 * Hello,
 * There is deprecation notice in my PHP error log file:
 *  [22-Jan-2020 15:35:08 UTC] PHP Deprecated: Array and string offset access syntax
   with curly braces is deprecated in /path/to/wp-content/themes/evolve/inc/support.
   php on line 170
 * A version upgrade will be very much appreciated!
 * Thanks and regards,
    joern

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

 *  [Bart Kuijper](https://wordpress.org/support/users/spartelfant/)
 * (@spartelfant)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/php-deprecated-array-and-string-offset-access-syntax-with-curly-braces/#post-12586990)
 * [PHP RFC: Deprecate curly brace syntax for accessing array elements and string offsets](https://wiki.php.net/rfc/deprecate_curly_braces_array_access)
 * Until this is fixed in the theme’s source, anyone bothered by the deprecation
   notice (like I am 😉 ) can fix it by replacing the curly braces `{}` with square
   brackets `[]` in `evolve/inc/support.php` at line 170:
 * `if ( !isset( $version{1} ) ) {`
 * should be changed to
 * `if ( !isset( $version[1] ) ) {`
    -  This reply was modified 6 years, 2 months ago by [Bart Kuijper](https://wordpress.org/support/users/spartelfant/).
    -  This reply was modified 6 years, 2 months ago by [Bart Kuijper](https://wordpress.org/support/users/spartelfant/).
    -  This reply was modified 6 years, 2 months ago by [Bart Kuijper](https://wordpress.org/support/users/spartelfant/).
    -  This reply was modified 6 years, 2 months ago by [Bart Kuijper](https://wordpress.org/support/users/spartelfant/).
 *  [ejmart](https://wordpress.org/support/users/ejmart/)
 * (@ejmart)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-deprecated-array-and-string-offset-access-syntax-with-curly-braces/#post-13202172)
 * Hi,
    I have a “similar” problem: designer/includes/tcpdf/tcpdf.php on line 17008
   Warning: “continue” targeting switch is equivalent to “break”. Did you mean to
   use “continue 2”? in /customers/f/8/d/ejmart.dk/httpd.www/wp-content/plugins/
   woocommerce-products-designer/includes/tcpdf/tcpdf.php on line 17864 Deprecated:
   Array and string offset access syntax with curly braces is deprecated in /customers/
   f/8/d/ejmart.dk/httpd.www/wp-content/plugins/woocommerce-products-designer/includes/
   tcpdf/include/tcpdf_images.php on line 310
 * and earlier I got a message saying on line 17005: plugins/woocommerce-products-
   designer/includes/tcpdf/tcpdf.php on line 17005 Deprecated: Array and string 
   offset access syntax with curly braces is deprecated in /customers/f/8/d/ejmart.
   dk/httpd.www/wp-content/plugins/woocommerce-products-designer/includes/tcpdf/
   tcpdf.php on line 17008 Warning: “continue” targeting switch is equivalent to“
   break”. Did you mean to use “continue 2”?
 * Could this also be solved by changing braces and if so, where do I find the document
   to make the changes? I am not familiar with this, so will highly appreciate guidance
   on not just what to do but also where and how? Hope so much you can help. 😃🙏

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

The topic ‘PHP Deprecated: Array and string offset access syntax with curly braces…’
is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/evolve/4.3.7/screenshot.png)
 * evolve
 * [Support Threads](https://wordpress.org/support/theme/evolve/)
 * [Active Topics](https://wordpress.org/support/theme/evolve/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/evolve/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/evolve/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 3 participants
 * Last reply from: [ejmart](https://wordpress.org/support/users/ejmart/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/php-deprecated-array-and-string-offset-access-syntax-with-curly-braces/#post-13202172)
 * Status: not resolved