PHP Replace text with link

Posted on 2012-09-03
Last Modified: 2012-09-04
Hi I i making a system where i take data from database and replace it in text with links for example:

I have database where i have replace all data backup with link for exampl <a href=''>data backup</a>

I know how make it is ease but the problem when i have for example Data backup it will not found it and will not replace. How i can make system where php script can search for similar content like if first letter is capital or last or full word is capital.

Can you please help me with some information.
Question by:umaxim
    1 Comment
    LVL 107

    Accepted Solution

    strpos() has a case-insensitive variant stripos().

    Most of the PHP string functions have similar variants.  In regular expressions you can use the "i" modifier to make the match be case-insensitive.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This is a general how to create your own custom plugin system for your PHP application that you designed (or wish to extend a third party program to have plugin functionality that doesn't have it yet).  This is not how to make plugins for existing s…
    Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now