Study php patterns