Function __global->extract_topic_identifier

Definitions

sources/feedback.php

  • Topic titles/descriptions (depending on forum driver) are encoded for both human readable data, and a special ID code: this will extract just the ID code, or return the whole thing if no specific pattern match.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$full_text string No No required parameter N/A N/A Potentially complex topic title

Returns

  • Simplified topic title
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Topic titles/descriptions (depending on forum driver) are encoded for both human readable data, and a special ID code: this will extract just the ID code, or return the whole thing if no specific pattern match.
 *
 * @param  string $full_text Potentially complex topic title
 * @return string Simplified topic title
 */

function extract_topic_identifier(string $full_text) : string