Hey, Refer the below links that provided good tutorial stuff for beginners will helpful for you, http://www.w3schools.com/php/ http://www.phpbuddy.com/ http://www.tizag.com/phpT/
PHP manages freeing all resources. Users does not required to free file handle resource, database resources, memory, etc, unless programmer need to free resource during script execution. php.net is helpful for you