PHP Format Resources