Skip to content

Latest commit

 

History

History
54 lines (30 loc) · 997 Bytes

README.md

File metadata and controls

54 lines (30 loc) · 997 Bytes

convert-hashtag-into-link

Convert Hashtag into link in OOP way.

Table of Contents

  • how to use code example.
  1. index.php
  • display hashtag link by using GET mehtod.
  1. dispaly-hastag.php
  • main file to convert hashtag into link.
  1. src/convert-into-link.php

Installation:

clone or download source files into your project.

Usage:

require and use "src/convert-into-link.php" as below example:

//require source file
require_once("src/convert-into-link.php");

//type the string you can use get and post method here
$string = "It is #example string you can #test #more.";

// create object
$ConvertHashtags = new ConvertIntoLink;

// call the function in classs
$result = $ConvertHashtags -> Convert($string);

// print result
echo $result;

Credits:

Orginal Creator : Sir Adam Khoury (PHP Teacher)

Original Project : http://www.developphp.com/video/PHP/Hashtag-System-and-Regex-PHP-Programming-Tutorial

License:

GNU General Public License V. 3.0 or later