note 69007 added to function.preg-replace

From: Date: Sat, 19 Aug 2006 14:43:31 +0000
Subject: note 69007 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-116082@lists.php.net to get a copy of this message
<?php // BBCode parser by Sevendust Class BBParse { Var $InputString; Var $OutputString; Function BBParse ( $InputString, $OutputString ) { If ( $This -> Input == '' ) { return_error ( 'You have to provide at least a message of 20 characters!', true ); } else { // Define some default BB code tags, such as bold, italic, and url. $BBCode[0] = '/[b]/'; $BBCode[1] = '/[/b]/'; $BBCode[2] = '/[i]/'; $BBCode[3] = '/[/i]/'; $BBCode[4] = '/[url]/'; $BBCode[5] = '/[/url]/'; // Replacement strings, in HTML ofcourse. $BBReplace[0] = '<b>'; $BBReplace[1] = '</b>'; $BBReplace[2] = '<i>'; $BBReplace[3] = '</i>'; $BBReplace[4] = '<a href=' . $InputString . '>'; $BBReplace[5] = '</a>'; $BBParsedOutput = Preg_Replace ( $BBCode, $BBReplace, $InputString ); } } } ?> ---- Server IP: 194.109.193.119 Probable Submitter: 81.59.14.11 ---- X-Spam-Status: No, hits=3.3 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_MESSAGE autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- https://master.php.net/note/edit/69007 Del: integrated -- https://master.php.net/note/delete/69007/integrated Del: useless -- https://master.php.net/note/delete/69007/useless Del: bad code -- https://master.php.net/note/delete/69007/bad+code Del: spam -- https://master.php.net/note/delete/69007/spam Del: non-english -- https://master.php.net/note/delete/69007/non-english Del: in docs -- https://master.php.net/note/delete/69007/in+docs Del: other reasons-- https://master.php.net/note/delete/69007 Reject -- https://master.php.net/note/reject/69007 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116082) next »