Subscribe to RSS Feed

Concatenating PDFs with PHP on the fly

One of my projects I was working on required PDFs to be concatenated/built on the fly from a stock set of 20 PDFs. Based on questionnaire answers, any 4 of the 20 + a core PDF would be concatenated together and provided for either email or download. The first solution I saw was just to [...]

Read the article

Code Snippets: Add comma’s to a string

Pretty commonly I’ll need to display a string of text that needs to be comma delineated using PHP.  This is the easiest way I have found to accomplish this. <?php $string = “test test2 test3 test4 test5 “; echo substr(str_replace(” “, “, “, $string), 0, -2); //outputs test, test2, test3, test4, test5 ?> Make sure [...]

Read the article