str::encode($string)
Encode a string (used for email addresses)
-
$string (string)
-
return (string)
Example
<?php
$string = 'Hallo Welt';
$encoded = str::encode($string);
var_dump($encoded);
Result:
'Hallo Welt'