Facebook style hashtag, mention and link system in PHP.

hey, guys today I am going to show you how to make a Facebook Style Hashtag, Mention and link system in PHP.
So if you use any social networking platform like Instagram, facebook, twitter etc you might be aware of hashtags like #HackerRahul, mentions like @HackerRahul or links that are converted automatically from a simple text string to clickable link dynamically.