PHP Documentation for main functions