In between curly braces, you can mention all supported or your required modules to install, and you can separate them by using a comma. Must Read: - How to Fix Missing Imagick Module on WordPress? sudo apt install php8.2.
So, using the following commands you can install PHP extensions and you can also check the installed PHP extensions. However, when we installed PHP automatically got installed the core modules. PHP has the option to install or uninstall modules as per your requirement. Install Must Use or Required Modules/Extensions