Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 20 21 22 23 24 ... 148
You can set this as a cron to automatically clean up unsubscribes after sending out a mass email.
0 501 posted 11 years ago by squadsupply
Using array_map() on multidimensional arrays
0 975 posted 11 years ago by pruntrut
The following shoud do it. pass the array, index is what element you want to sort on (in your case use 3). Then you can sort asc or desc, and weather you want to use natural sorting (the way a human would sort, 2 before 10) and lastly case sensitive...
0 481 posted 11 years ago by pruntrut
This is the list of [supported timzones](http://php.net/manual/timezones.php) that can be used with the [PHP5 DateTime](http://php.net/manual/class.datetime.php) class, grouped by geographical continent (rather than PHP's America/..., Asia/... etc id...
0 511 posted 11 years ago by ch1902
sort a multidimensional array by field
0 534 posted 11 years ago by akt
sort a multidimensional array by field
0 540 posted 11 years ago by akt
Make your spreadsheet public to get a key like this: 0AsfENoKj1ir7dE8yR6U0aUtpdTVNM20wRlNJOhZaclG Set it on the script and you're all done.
0 542 posted 11 years ago by Felladrin
0 274 posted 11 years ago by lolitaloco
set post thumb if missing on post save
0 422 posted 11 years ago by lolitaloco
$asciiData = preg_replace( '/[\x7f-\xff]/', '', $dirtyData );
0 399 posted 11 years ago by jgomez
Get file extension from it's name or complete path
2 632 posted 11 years ago by fawazcb
I'm facing an error when i read the JS array using a JS loop
0 517 posted 11 years ago by kaushikTD
ChucK is a strongly-timed, concurrent, and On-the-fly Audio Programming Language. A Bundle to edit ChucK files in the TextMate editor is created at Github. To install it execute in Terminal:
0 528 posted 11 years ago by Thommm
Let's say you want to show a list of employees, and you want to show 3 on each row, use the script below to accomplish that.
0 680 posted 11 years ago by andreaskian
1 601 posted 11 years ago by paul0078
0 526 posted 11 years ago by paul0078
0 563 posted 11 years ago by paul0078
0 381 posted 11 years ago by paul0078
0 467 posted 11 years ago by paul0078
0 397 posted 11 years ago by paul0078
Enter any suspicious IP address that you wanted to check into the form field and press the "LOOKUP" button
1 1893 posted 11 years ago by DNSBL
Toggle section titles
0 421 posted 11 years ago by G470
Use this code to call the Plugin: <plug:full_background_image>
1 605 posted 11 years ago by G470
1 ... 20 21 22 23 24 ... 148