In PHP, global variables can be accessed and modified from within functions using the global keyword.