Sometimes that’s not necessary to check a file’s mime type and you only need to check the file extension. To do that we can use
You don’t have to actually programmatically read a PDF to parse out the links in them. This simple routine below will parse out all the
Handy one for all sorts of reasons, just don’t use it for evil : \. I also did an online working version of this function.
This function will return the first n (the number you request) characters careful to not break in the middle of a word. getSummary is also
Regular expressions are great but sometimes you want to do it faster (meaning easier), depending on what you’re trying to do. When you quickly want
This php function takes a timestamp and returns a detailed string of the time difference expressed in seconds, minutes, hours, days ago, or away if