safeStrcpy() public static method

PHP 7 uses interned strings. We don't want altering this one to alter the original string.
public static safeStrcpy ( string $string ) : string
$string string
return string
Beispiel #1
0
 /**
  * Prevent accidental echoing of a hidden string
  *
  * @return string
  */
 public function __toString() : string
 {
     if ($this->allowInline) {
         return CryptoUtil::safeStrcpy($this->internalStringValue);
     }
     return '';
 }