chgrp in PHP December 7, 2021 by Codingtube team Syntax of chgrp in PHP bool chgrp(string path, mixed group) Changes the group for the file path to group; PHP must have appropriate privileges for this function to work. Returns true if the change was successful and false if not.