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


  • 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

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