Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged text



« Prev 1 2
  1. FAV

    function to obfuscate web text into random design

    Function for obfuscate Text in html pages. good for making screenshot and mind data protection if needed. changes Text into many small divs with different bgcolor.
    PHP 129 views posted 3 months ago by PietKeizer
  2. FAV

    Formatted Text Output using str_pad()

    This is a simple PHP class that can be used to produce nicely formatted reports from unorganized data.
    PHP 6 views posted 4 years ago by COBOLdinosaur
  3. FAV

    HTML Table to plain text

    Use PHP's DOM parser to convert a table into plain text (including links with images)
    PHP 23 views posted 5 years ago by nigelnquande
  4. FAV

    HTML to Plain Text

    This function takes HTML input and converts it to plain text. It needs improvement so that it converts multiple blank lines to a single blank line and converts an <a ... > link to the markup equivalent (same for images). It should be rewritten...
    PHP 7 views posted 5 years ago by nigelnquande
  5. FAV

    Read and write data to textfile

    I created this code for practice, and I looking for better and clear solution for the last instance where I can write or delete the data, but after I want to get back the content as array or the key as string. I want to use this write-read back with...
    PHP 15 views posted 5 years ago by gitarfogas
  6. FAV

    PHP Code Sample to Replace Multiple Text in PDF File Using Cloud API

    The following code sample shows how developers can replace multiple texts in a single API call in a PDF file using Aspose.Pdf for Cloud API in their applications. Developers can use Aspose REST API with any language: .NET, Java, PHP, Ruby, Rails, Pyt...
    PHP 16 views posted 5 years ago by johansonkatherine
  7. FAV

    Get the text in between more text in a string.

    Get the text in between more text in a string. Accepts $content,$start,$end & $is_string as parameters.
    PHP saved by 2 people 10 views posted 7 years ago by o0110o
  8. FAV

    MySQL INSERT Query Generator w/ Strings

    Takes your table name and key=>value array of values and returns the text for inserting into a MySQL database. Automatically surrounds strings with single quotes.
    PHP saved by 3 people 14 views posted 7 years ago by lemcoe9
  9. FAV

    PHP function to extract keywords from a string of text

    This is a function that receives a string as an argument (along with other config optional arguments) and locates all keywords (words that appear most) from that string, returning the keywords as an array or as a string separated by commas. The funct...
    PHP saved by 4 people 28 views posted 8 years ago by TimoZachi
  10. FAV

    Anti-Word Alert

    I've yet to work on a WordPress site where at least once post wasn't copied from Microsoft Word, producing a mess of inline tags and awful markup. This helps prevent that, just a little.
    PHP 6 views posted 8 years ago by travishines
  11. FAV

    auto link urls in text / string

    PHP 10 views posted 8 years ago by rwunsch
  12. FAV

    SMS TEXT FROM PHP

    PHP 10 views posted 8 years ago by kidmizere
  13. FAV

    Test PayPal ipn to file

    Writes to a text file, test.txt, instead of email for the purposes of testing.
    PHP 4 views posted 8 years ago by hotdiggity
  14. FAV

    Showing Posts with custom excerpt length and custom read more text in WordPress

    PHP 4 views posted 8 years ago by deepakrajpal
  15. FAV

    Wordpress Text Widget with Class

    PHP 6 views posted 8 years ago by willem
  16. FAV

    Thesis: custom comment text

    PHP 6 views posted 8 years ago by psteinweber
  17. FAV

    Thesis: change previous next text

    PHP 3 views posted 8 years ago by psteinweber
  18. FAV

    Wordpress: Text Excerpts with PHP

    Create excerpts from text block from your wordpress content and add links page / post from the guid.
    PHP 6 views posted 8 years ago by prwhitehead
  19. FAV

    Truncate Text at Word Break

    PHP 7 views posted 8 years ago by pootify
  20. FAV

    RSS Readers in sidebar and Twitter.

    To implemented this code is easy, all need to do write down PHP FeedBurner Counter below in our themes files, example in sidebar.php, header.php or footer.php. Let’s get started, Please note you need replace YOUR FEED ADDRESS with your Feeds,
    PHP 7 views posted 8 years ago by alexeihidalgo
  21. FAV

    Text - to_possessive

    Transforms string to it's possessive form and return it's original case form.
    PHP 3 views posted 8 years ago by Arvi
  22. FAV

    Shorten text without cutting words

    This help you cutting text without cut the last word. Any feedback appreciated!
    PHP 5 views posted 9 years ago by alesma
  23. FAV

    Find URLs In a Text and Shorten Them

    This script parses the entered text and it gets all URLs from the text. It will then shorten those URLs and replace the long URLs with shortened ones in the text. If you need only the Shortener Services script, take a look at this snippet <a href="h...
    PHP saved by 2 people 9 views posted 9 years ago by stamba
  24. FAV

    write to text file

    PHP 5 views posted 9 years ago by G470
  25. FAV

    Enlight a word from text

    PHP 6 views posted 9 years ago by newsok
  26. FAV

    Explode Text File of URLS into HTML links

    This is a simple 'text to array for output' script that I've used a few times for my clients. Hope you like!
    PHP 12 views posted 9 years ago by chicagowebmanagement
  27. FAV

    Convert html source to full text

    Turn a html source into a full text document by removing all html tags and other unneeded code.
    PHP 5 views posted 9 years ago by math89
  28. FAV

    Corta los primeros n caracteres de un texto, pero busca el espacio para no cortar una palabra

    PHP 5 views posted 9 years ago by mfigge
  29. FAV

    php text to link

    PHP 5 views posted 9 years ago by metoikos
  30. FAV

    PHP: Remove Everything But Letters And Numbers – Reg Expressions

    PHP saved by 2 people 5 views posted 9 years ago by Wardy
« Prev 1 2