PHP by itself has no state. Each request is completely unique. It's very close to the bare metal of HTTP in this regard.
To implement state on top of that you can use sessions, databases, shared memory, files or anything else that somehow retains state. Frameworks like Zend or Cake offer abstractions for these mechanisms that make it appear stateful out of the box to varying degrees. PHP is never truly keeping state though.