.. _increment-on-non-alphanumeric-string-is-deprecated: Increment on non-alphanumeric string is deprecated -------------------------------------------------- .. meta:: :description: Increment on non-alphanumeric string is deprecated: Incrementing a string in a variable is an old darling PHP feature. :og:image: https://php-errors.readthedocs.io/en/latest/_static/logo.png :og:type: article :og:title: Increment on non-alphanumeric string is deprecated :og:description: Incrementing a string in a variable is an old darling PHP feature :og:url: https://php-errors.readthedocs.io/en/latest/messages/increment-on-non-alphanumeric-string-is-deprecated.html :og:locale: en :twitter:card: summary_large_image :twitter:site: @exakat :twitter:title: Increment on non-alphanumeric string is deprecated :twitter:description: Increment on non-alphanumeric string is deprecated: Incrementing a string in a variable is an old darling PHP feature :twitter:creator: @exakat :twitter:image:src: https://php-errors.readthedocs.io/en/latest/_static/logo.png .. raw:: html Description ___________ Incrementing a string in a variable is an old darling PHP feature. As long as the last character is an ascii letter, it is incremented to the next ascii value, or wrap to a. This feature is deprecated since PHP 8.3, and it is replaced by a call to str_increment() and str_decrement() (the last one is a new feature). Example _______ .. code-block:: php Solutions _________ + Use str_increment(). + Change the generating system entirely. Changed Behavior ________________ This error may appear following an evolution in behavior, in previous versions. See `incrementNonAlphanumeric `_.