Relative Content

Tag Archive for phpstring

check if a String Contains a Substring in PHP

Hey I am trying to change a state of an object in PHP based on its previews state. the state itself is a string and the state can be 4 states: published, published assigned, displayed, displayed assigned. if the state is published it cant go back to displayed but it can go between assigned and not assigned.