Call to undefined function imap_open()

Mark5320 <[email protected]>
Newsgroups comp.lang.php
Organization Aioe.org NNTP Server
Message-ID <[email protected]>
$ php -r 'imap_open();'
PHP Fatal error:  Uncaught Error: Call to undefined function imap_open() 
in Command line code:1

I know, you have to install the appropriate extension (sudo apt install 
SOMETHING).
But there is a special command (for Ubuntu 22.04.1) to establish 
precisely (without going to google) what extension (package) should we 
install?
For example

$ php-owner-package imap_open
imap_open() function it's included into package SOMETHING
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.