t3lib_div::mkdir(PATH_site . 'my_folder');
t3lib_div::mkdir(PATH_site . 'my_folder/my_subfolder');These examples are part of the TYPO3 package library, which is a collection of PHP classes and functions for building complex web applications using TYPO3 CMS.