Sometimes we need to remove particular PHP version. For that you can follow below steps:
If you want to remove all PHP packages for any particular version then you can use this command:
For EA4 packages:
yum remove ea-phpxx*
For alt-php (CloudLinux) packages:
yum remove alt-phpxx*
Here xx...