Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 42 43 44 45 46 ... 147
Takes the seconds, and returns minutes. Will wrap it in a function is anyone is interested. Example: 92s -> 1m 32s
0 995 posted 12 years ago by nebojsac
0 554 posted 12 years ago by prianto
0 605 posted 12 years ago by raz
0 477 posted 12 years ago by tcelestino
Full email validation with regex.
0 1150 posted 12 years ago by nebojsac
The function returns the "sanitized" version of user input. Use before putting variables into SQL code.
0 674 posted 12 years ago by nebojsac
This piece of code is at least ten years old and I don't remember exactly, where I have found it. Probably it had been stolen from my friend VeZyR;)
0 615 posted 12 years ago by michaJlS
0 614 posted 12 years ago by kbrown
Resize and image to fit a predetermined canvas size
0 824 posted 12 years ago by flatearthcomms
If you have Zend_Navigation in your application, you will use navigation.xml. This code set the page title ($this->view->headTitle()) with the current page title in navigation.xml. $navigation->current() doesn't work in my opinion.
0 823 posted 12 years ago by postNuKe
0 581 posted 12 years ago by jigante
0 519 posted 12 years ago by alp
0 555 posted 12 years ago by alp
0 608 posted 12 years ago by alp
0 616 posted 12 years ago by alp
1 ... 42 43 44 45 46 ... 147