imap_listscan
Function • Removed in PHP 8.4
Returns the list of mailboxes that matches the given text.
imap_listscan Function synopsis
imap_listscan(
IMAP\Connection $imap,
string $reference,
string $pattern,
string $content
): array|false
Parameters
$imap
TypeIMAP\Connection
$reference
Typestring
$reference should normally be just the server
specification as described in imap_open
$pattern
Typestring
$content
Typestring
The searched string
Return value
Typearray|false
Returns an array containing the names of the mailboxes that have
$content in the text of the mailbox, or false on failure.
Changes to the imap_listscan Function
PHP 8.4
- Function removed
PHP 8.1
- Parameter type added for parameter #1 (
$imap):IMAP\Connection
imap_listscan(
- $imap,
+ IMAP\Connection $imap,
string $reference,
string $pattern,
string $content
): array|false PHP 8.0
- Return type added:
array|false - Parameter name of parameter #1 changed:
$stream_idto$imap - Parameter name of parameter #2 changed:
$refto$reference - Parameter type added for parameter #2 (
$reference):string - Parameter type added for parameter #3 (
$pattern):string - Parameter type added for parameter #4 (
$content):string
imap_listscan(
- $stream_id,
+ $imap,
- $ref,
+ string $reference,
- $pattern,
+ string $pattern,
- $content
+ string $content
- )
+ ): array|false imap_listscan Function Availability
imap_listscan Function Availability| PHP Version | Availability |
|---|---|
| PHP 8.6Upcoming Release | No |
| PHP 8.5Supported (Latest) | No |
| PHP 8.4Supported | No |
| PHP 8.3Security-Fixes Only | Yes |
| PHP 8.2Security-Fixes Only | Yes |
| PHP 8.1Unsupported | Yes |
| PHP 8.0Unsupported | Yes |
| PHP 7.4Unsupported | Yes |
| PHP 7.3Unsupported | Yes |
| PHP 7.2Unsupported | Yes |
| PHP 7.1Unsupported | Yes |
| PHP 7.0Unsupported | Yes |
| PHP 5.6Unsupported | Yes |
| PHP 5.5Unsupported | Yes |
| PHP 5.4Unsupported | Yes |
| PHP 5.3Unsupported | Yes |