Function __global->ticket_wrap_with_email_address
Definitions
sources/tickets2.php
- Wrap a ticket with a guest e-mail address, if provided.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $post | string | No | No | required parameter | N/A | N/A | The ticket post |
| No | No | required parameter | N/A | N/A | The e-mail address | ||
| $mandatory_guest_email | boolean | No | No | False | N/A | N/A | Whether an e-mail address is mandatory for guests |
Returns
- The wrapped ticket post
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Wrap a ticket with a guest e-mail address, if provided.
*
* @param string $post The ticket post
* @param EMAIL $email The e-mail address
* @param boolean $mandatory_guest_email Whether an e-mail address is mandatory for guests
* @return string The wrapped ticket post
*/
function ticket_wrap_with_email_address(string $post, string $email, bool $mandatory_guest_email = false) : string
* Wrap a ticket with a guest e-mail address, if provided.
*
* @param string $post The ticket post
* @param EMAIL $email The e-mail address
* @param boolean $mandatory_guest_email Whether an e-mail address is mandatory for guests
* @return string The wrapped ticket post
*/
function ticket_wrap_with_email_address(string $post, string $email, bool $mandatory_guest_email = false) : string

