Expanded php functionality