.. _cannot-be-0: cannot be 0 ----------- .. meta:: :description: cannot be 0: The third argument of range() is the step: the amount to progress for each element, compared to the previous one. :og:image: https://php-errors.readthedocs.io/en/latest/_static/logo.png :og:type: article :og:title: cannot be 0 :og:description: The third argument of range() is the step: the amount to progress for each element, compared to the previous one :og:url: https://php-errors.readthedocs.io/en/latest/messages/cannot-be-0.html :og:locale: en :twitter:card: summary_large_image :twitter:site: @exakat :twitter:title: cannot be 0 :twitter:description: cannot be 0: The third argument of range() is the step: the amount to progress for each element, compared to the previous one :twitter:creator: @exakat :twitter:image:src: https://php-errors.readthedocs.io/en/latest/_static/logo.png .. raw:: html Description ___________ The third argument of range() is the step: the amount to progress for each element, compared to the previous one. When that step is null, the range() function always creates the same element, with no chance to finish. This cannot be 0. Example _______ .. code-block:: php Solutions _________ + Use a value strictly non-zero.