Welcome To Snipplr
Everyone's Recent Snippets Tagged php
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Function replaces all non-alpha-numeric chars and cleans up a text string. Should output a usable URL for almost all text.
1
615
posted 14 years ago by DaveChild
To use the resize function you must pass in the forced width, forced height, source image, and destination image. The function then uses the GD2 library functions to read the source image's size. It will then calculate the new image's size based off...
3
552
posted 14 years ago by Jenhale
This is saved from Gerhard Slettens weblog www.gersh.no. I just want yo keep it on snipplr so it easily can be fetched through textmate.
15
937
posted 14 years ago by stavelin
Pre-selects an html form with a requested value... ie; editing a form from a database
0
481
posted 14 years ago by davidsword
For a complete list of time/date parameters, visit: http://php.net/manual/function.date.php
1
398
posted 14 years ago by Jaymoon
I'm working on a web app that requires me to track nearly 300 form fields. To make this easier, and to allow me to handle special cases, I needed to assign them to an internal array. The switch/case statement makes this a breeze.
1
471
posted 14 years ago by mdrisser
Description
print_r - Prints human-readable information about a variable
mixed print_r( mixed expression [, bool return] )
print_r() displays information about a variable in a way that's readable by humans.
Parameters
* expression...
0
462
posted 14 years ago by ianmonge
This function will allow you to use '#ABCDEF' or '0xEEFF33' instead of the RGB values required for imagecolorallocate() by stripping away any non hex characters. It will also check and make sure that it's a valid 6 digit hex value after the stripping...
0
430
posted 14 years ago by Jacolyte