Function Forum_driver_vb3->forum_id_from_name
Definitions
sources/forum/vb3.php
- Get the forum ID from a forum name. Numeric forum names are considered to be usable as IDs.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$forum_name | SHORT_TEXT | No | No | required parameter | N/A | N/A | The forum name |
Returns
- The forum ID (null: not found)
- Type: ?integer
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the forum ID from a forum name. Numeric forum names are considered to be usable as IDs.
*
* @param SHORT_TEXT $forum_name The forum name
* @return ?integer The forum ID (null: not found)
*/
public function forum_id_from_name(string $forum_name) : ?int
* Get the forum ID from a forum name. Numeric forum names are considered to be usable as IDs.
*
* @param SHORT_TEXT $forum_name The forum name
* @return ?integer The forum ID (null: not found)
*/
public function forum_id_from_name(string $forum_name) : ?int