PHP Filter-logic Resources