Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged php



1 ... 35 36 37 38 39 ... 58
I include this in anything I'm developing, so I can easily inspect the contents of arrays and objects.
0 2057 posted 16 years ago by joshuamilford
0 1588 posted 16 years ago by sismevu
This is useful for escaping multiple values in a POST array.
0 2114 posted 16 years ago by bradless
1 1623 posted 16 years ago by tcmacdonald
Many scripts rely on `$_SERVER[SCRIPT_URL]` which is sometimes missing. This function detects it from other server variables and fixes the missing field.
1 3080 posted 16 years ago by drwitt
Orders a multi-dimensional array by one of it's fields. There is also the option to treat this like an SQL-style 'order by' query with the $field value passed in (ie. 'user_id desc') to do reverse ordering.
0 1575 posted 16 years ago by browncardigan
This PHP class lets you clean and repair html code. WHAT IT DOES: delete closed tags without their opening tag, fix open tag without close, closing them automatically, check bad nesting and fix them, fix bad quotes in attributes, merge different styl...
2 5144 posted 16 years ago by ginoplusio
1 2264 posted 16 years ago by ginoplusio
PHP encrypts your E-mail address and generates the javascript that decrypts it. Most bots and spiders can't execute javascript and that is what makes this work.
3 2826 posted 16 years ago by fackz
1 1772 posted 16 years ago by mracoker
Insert email in wordpress theme whit cryptX plugin active
0 1785 posted 16 years ago by toro999
Insert admin menu in wordpress widget when you are logged
0 1814 posted 16 years ago by toro999
Insert banner image in wordpress page theme
0 1880 posted 16 years ago by toro999
1 2616 posted 16 years ago by ginoplusio
1 1972 posted 16 years ago by ginoplusio
A utility function to preserve an array in a session. Adding the newest element to the beginning of the array and popping out the last one. Useful for displaying for instance; your last searches option in your website.
1 2306 posted 16 years ago by Heroftime
0 1790 posted 16 years ago by bionickid
This will outpu a numeric result array
0 2337 posted 16 years ago by karmacode
To show error in php.
0 2133 posted 16 years ago by rahijain
A little function I add to the base Page_Controller class that allows you to define what actions are explicitly SSL. It will put users in SSL when they access it and take them out of it when they navigate somewhere else. It is available in any cont...
0 1274 posted 16 years ago by dalethedeveloper
1 2404 posted 16 years ago by ginoplusio
1 2456 posted 16 years ago by ginoplusio
Con esta funcion podemos recortar una cadena de texto indicandole cuantos caracteres queremos que tenga y ademas no cortara la ultima palabra.
0 1676 posted 16 years ago by jacinmontava
Simple function that sorts a bi-dimensional array by one of it keys.
1 2342 posted 16 years ago by AlejoLuc
Every MySQL class for PHP I've seen so far has been an epic disappointment. This will not lead you to feel the same way. Enjoy!
0 1535 posted 16 years ago by jrgp
Used to copy the user avatar from Facebook to your community in this [Facebook Connect Tutorial](http://www.barattalo.it/facebook-connect-tutorial/ "Tutorial").
1 2296 posted 16 years ago by ginoplusio
1 ... 35 36 37 38 39 ... 58