PHP Scripts small useful snippets
Over the course of the last few years, I have made up several functions that you may find yourself.
Useful Code Snippets
- PHP Strings (generalizable snippets to perform common tasks including removing last character of string, removing first character of string, etc..)
- PHP Directory (Extracting parts of a file or directory path)
- New lines in Textarea (useful php snippet to find and, if you'd like, replace new lines, carriage returns, from multline textareas)
Functions
- create copy of string (this generalized function takes any string and adds a '-copy[number]' up to, for all intensive purposes, infinity!)