Tip Of The Day: Convert Paragraphs To Returns
This may seem completely pointless, but I needed to do this for a client & it confused me for a while.
Read moreThis may seem completely pointless, but I needed to do this for a client & it confused me for a while.
Read moreSanitizing data is a very important part of any server side scripting language, and it’s no different for PHP. So here is one simple way of sanitizing data using the dreaded REGEX.
Read moreWhile I am busy with the update of The Attached Image (which is taking a while) I thought I’d write a post about something that is commonly searched for, or so I’ve read. Matching image tags using REGEX can be difficult, but I’m here to, hopefully, make it easier.
Read moreThis is probably a very well known tip, but for those new to PHP it’s handy. When needing to replace something try & use str_replace instead of preg_replace. Always remember that REGEX is costly & should only be used when it is really needed. If you need to do a case insensitive replace then use str_ireplace.
Read more
Recent Comments