Added functions for PHP and SQL.