Home Linkify a URL With PHP (Version 1)

    Linkify a URL With PHP (Version 1)


    This is the first of a few functions that’ll linkify text with PHP. It’s based on WordPress’ make_clickable() function. If you would like to shorten a URL in addition to creating an active link, modify the beliefmedia_create_short() function as required. For truncating purposes, clients will likely want to use our own suite of tools.

    Usage is as follows:

    Returns the following:

    This is the first URL: http://www.beliefmedia.com/, and another: http://www.flight.org

    Additional functions that serve a similar purpose are forthcoming.

    Short URL for this post: http://shor.tt/17G1