Posts Tagged ‘php useful code’

5 More Useful PHP Snippets

December 14th, 2012 Leave a comment 1 comment
5 More Useful PHP Snippets

Given the success of our last PHP Snippets article, we’ve decided to go ahead and find a few more useful PHP snippets. Without further ado, here are some more useful (and a bit more complex) PHP snippets for use! 1. Generating CSV Many people have come up with their own functions for generating CSVs, but the problem is that many of them fail to take into account wayward quotation marks or apostrophes that will bring down their CSV and make it harder to parse later. A much better idea is to take those into account, like so: function make_csv(array $to_csv, $file = false)… View full post »

Sending Text Messages with PHP

September 21st, 2012 Leave a comment 1 comment
Sending Text Messages with PHP

These days text messaging is everywhere and not just for personal conversations. Companies are using text messages to send you coupons, let you know when you bills and statements are ready or that your dry cleaning can be picked up. Text messaging seems more convenient than making phone calls and creating your own PHP script to send these messages is a very easy thing to set up. Get on board with these other companies that have found how convenient text messages are for their customer and start integrating text messaging into your PHP applications. In this… View full post »