To install PHP, a popular open-source scripting language, on OpenSUSE 15.2 or 15.1, follow these steps:
sudo zypper refresh
sudo zypper install php7
This will install PHP and any dependencies required.
php -v
This will display the version of PHP that was installed.
sudo zypper install php7-<module>
Replace <module>
with the name of the module you want to install.
That's it! PHP is now installed on your OpenSUSE 15.2 or 15.1 system. You can use it to run PHP scripts and build web applications.