note 111512 added to function.preg-replace

From: Date: Thu, 28 Feb 2013 02:56:18 +0000
Subject: note 111512 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-193741@lists.php.net to get a copy of this message
<?php $text = "simple mention @indonesia is my country"; echo preg_replace_callback("/@([a-zA-Z0-9-]+)/", function($m){ return "<a href=#>@".$m[1]."</a>"; }, $text); ?> Output ---- Server IP: 69.147.83.199 Probable Submitter: 110.232.93.33 ---- Manual Page -- http://php.net/manual/en/function.preg-replace.php Edit -- https://master.php.net/note/edit/111512 Del: integrated -- https://master.php.net/note/delete/111512/integrated Del: useless -- https://master.php.net/note/delete/111512/useless Del: bad code -- https://master.php.net/note/delete/111512/bad+code Del: spam -- https://master.php.net/note/delete/111512/spam Del: non-english -- https://master.php.net/note/delete/111512/non-english Del: in docs -- https://master.php.net/note/delete/111512/in+docs Del: other reasons-- https://master.php.net/note/delete/111512 Reject -- https://master.php.net/note/reject/111512 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#193741) next »