Skip to content

Convert Hashtag into link in object oriented programming (OOP) way.

License

Notifications You must be signed in to change notification settings

luckywilliams/convert-hashtag-into-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Convert Hashtag into link in object oriented programming (OOP) way.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages