How to change php version in ubuntu

- How to change php version in ubuntu 22.04
- How to change php version in ubuntu 20.04
- How to change php version in ubuntu nginx
- How to change default php version in ubuntu
- How to change php cli version in ubuntu
- How to change php version in apache2 ubuntu
- How to change composer php version ubuntu
- How to change php version in xampp ubuntu
- Command to change php version in ubuntu