Package 'php7.4-curl' has no installation candidate

C++
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php7.4-curl
Source

Also in C++: