note 24967 deleted from function.preg-match by sniper

From: Date: Tue, 30 Sep 2003 12:13:43 +0000
Subject: note 24967 deleted from function.preg-match by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57395@lists.php.net to get a copy of this message
Note Submitter: antony.booth@kill.webbots.com ---- I realised that my above example could be made get simple by replacing: - // first element does not want the period('.') $matches[0][0] = $matches[1][0]; $domain = implode('',$matches[0]); with: - $domain = implode('.',$matches[1]); Where each element ommits the period and it is used as the glue in the implode statement

« previous php.notes (#57395) next »