Skip to content

Commit ab0fb09

Browse files
fix implde
1 parent 59a52c9 commit ab0fb09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Generic.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class Generic
1212
/* https://scripts.guru/partially-hide-email-address-using-php/ */
1313
public static function partially_email($email)
1414
{
15-
$em = explode("@",$email);
16-
$name = implode(array_slice($em, 0, count($em)-1), '@');
15+
$em = explode('@',$email);
16+
$name = implode('@',array_slice($em, 0, count($em)-1));
1717
$len = floor(strlen($name)/2);
1818
return substr($name,0, $len) . str_repeat('*', $len) . "@" . end($em);
1919
}

0 commit comments

Comments
 (0)