_atdot() – “at dot” an email address

You appear to be a bot. Output may be restricted

Description

"at dot" an email address

Usage

$string = _atdot( $email, $at, $dot );

Parameters

$email
( string ) required – original email address
$at
( string ) optional default: at – default value for replacing '@'
$dot
( string ) optional default: dot – default value for replacing '.'

Returns

string email address with @'s replaced by " at " and .'s replaced by " dot "

Source

File name: oik/shortcodes/oik-email.php
Lines:

1 to 5 of 5
function _atdot( $email, $at=" at ", $dot=" dot " ) {
  $atdot = str_replace( "@", $at, $email );
  $atdot = str_replace( ".", $dot, $atdot );
  return( $atdot ); 
}
 

 View on Trac