helpers.php
Table of Contents
Functions
- publish() : int|null
- 生产
- is_empty_dir() : bool
- binary_dump() : string
- produce a hex+ASCII dump of a binary string.
Functions
publish()
生产
publish(AbstractBuilder $builder, string $body[, string|null $routingKey = null ][, array<string|int, mixed>|null $headers = null ]) : int|null
Parameters
- $builder : AbstractBuilder
- $body : string
- $routingKey : string|null = null
- $headers : array<string|int, mixed>|null = null
Return values
int|nullis_empty_dir()
is_empty_dir(string $path[, bool $remove = false ]) : bool
Parameters
- $path : string
- $remove : bool = false
Return values
boolbinary_dump()
produce a hex+ASCII dump of a binary string.
binary_dump(string $binary[, int $bytesPerLine = 16 ][, bool $showAscii = true ][, bool $uppercase = true ]) : string
Parameters
- $binary : string
-
Binary input string to dump.
- $bytesPerLine : int = 16
-
Number of bytes to show per line (default 16).
- $showAscii : bool = true
-
Whether to include the ASCII column (default true).
- $uppercase : bool = true
-
Whether hex letters are uppercase (default true).
Return values
string —Formatted multi-line hex dump.