Function __global->deep_clean

Definitions

sources/deep_clean.php

  • Clean common ugliness from some text. E.g. copy and paste problems.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$d string No No required parameter N/A N/A Input
$heading string No No Blank (empty string) N/A N/A Heading to not allow to be repeated at start (blank: none)

Returns

  • Output
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Clean common ugliness from some text. E.g. copy and paste problems.
 *
 * @param  string $d Input
 * @param  string $heading Heading to not allow to be repeated at start (blank: none)
 * @return string Output
 */

function deep_clean(string $d, string $heading = '') : string