[Solved] it may seem like a silly question but it’s confusing to me regarding the (++) and it’s position in php

[ad_1]

  • print value (prints 1)
  • ++ (adds 1 to $value)
  • check if value is > or = to 10 and break if it is

that is why you loop never gets to printing 10 since it breaks when the value is equal to 10

[ad_2]

solved it may seem like a silly question but it’s confusing to me regarding the (++) and it’s position in php