Changeset 10 for branches/1.1dev/lib
- Timestamp:
- Sep 12, 2005 1:02:01 AM (19 years ago)
- Location:
- branches/1.1dev
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1dev/lib/Utilities.inc.php
r3 r10 206 206 207 207 /** 208 * Encodes an email into a user (at) domain (dot) com format. 209 * 210 * @access public 211 * @param string $email An email to encode. 212 * @param string $at Replaces the @. 213 * @param string $dot Replaces the .. 214 * @return string Encoded email. 215 */ 216 function encodeEmail($email, $at='-at-', $dot='-dot-') 217 { 218 $search = array('/@/', '/\./'); 219 $replace = array($at, $dot); 220 return preg_replace($search, $replace, $email); 221 } 222 223 /** 208 224 * Return a human readable filesize. 209 225 *
Note: See TracChangeset
for help on using the changeset viewer.