Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged line



« Prev 1 Next »
  1. FAV

    [php] [txtfile] Lire un fichier avec la fonction file

    Read a file with the file function
    PHP 4 views posted 5 months ago by martinbrait
  2. FAV

    [php] [txtfile] lire la première ligne de texte d'un fichier sur le serveur

    read the first line of text of a file on the server To read the first line of text in your file: The fgets () function retrieves the first 4096 characters from the first line of your file.
    PHP 1 views posted 5 months ago by martinbrait
  3. FAV

    Read Command Line Arguments

    If you want to use PHP as a command line program, this code can serve s a reference to read the arguments passed to the program.
    PHP 0 views posted 8 years ago by tcam27
  4. FAV

    Convert associative array to object (class) in a single line

    This method is easy to write, but not very efficient, as you can imagine.
    PHP saved by 10 people 2 views posted 9 years ago by dyteq
  5. FAV

    Remove newline from string

    PHP saved by 2 people 1 views posted 9 years ago by dmistriotis
  6. FAV

    PHP : convertir des retours à la ligne en entité html avec la fonction nl2br()

    PHP 0 views posted 9 years ago by alexandrepayet
  7. FAV

    Command line progress bar with PHP

    PHP saved by 6 people 7 views posted 9 years ago by iTony
  8. FAV

    HTML compression // white space removal

    i know these regex stuff is rather slow, but still i like having slim documents. (don't forget to use gzip compression on all text docs)
    PHP saved by 6 people 4 views posted 10 years ago by iroybot
  9. FAV

    PIN Generator 1 line

    This will print every number from 0000-9999. Each number is comma separated. The goal was not pretty / readable code, but to get all code on a single line.
    PHP 2 views posted 11 years ago by tgpo
« Prev 1 Next »