Function __global->remove_magic_encryption_marker

Definitions

sources/encryption.php

  • Remove the magic encryption marker from some data. This should be used if the data is to be displayed or presented for editing, but not if it's to be put in the database.If the data does not have a magic encryption marker, the original string will be returned.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$data string No No required parameter N/A N/A Data

Returns

  • Data, without the magic marker
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Remove the magic encryption marker from some data. This should be used if the data is to be displayed or presented for editing, but not if it's to be put in the database.If the data does not have a magic encryption marker, the original string will be returned.
 *
 * @param  string $data Data
 * @return string Data, without the magic marker
 */

function remove_magic_encryption_marker(string $data) : string