PHP Classes

File: Example/bbcode.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Pierre-Henry Soria  >  PHP Markdown and BBCode Parser  >  Example/bbcode.php  >  Download  
File: Example/bbcode.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Markdown and BBCode Parser
Parse and replace Markdown and BBCode by HTML
Author: By
Last change:
Date: 2 years ago
Size: 737 bytes


Class file image Download
 * @title BbCode Markup Language
 * @author Pierre-Henry Soria <>
 * @copyright (c) 2012-2013, Pierre-Henry Soria. All Rights Reserved.
 * @license Lesser General Public License; See LICENSE.txt in the root directory.
 * @link
 * @package PH7
 * @version 1.0

namespace PH7;
define('PH7', true);

PH7\Parse\Text as Txt;


$sBbCodeText = file_get_contents('text/');

$oBbCode = new Txt\BbCode($sBbCodeText);
<!DOCTYPE html>
<html lang="en-US">
<meta charset="utf-8" />
<title>BBCode Parser example</title>
<?php echo $oBbCode; ?>