ASPit - Totally ASP JSit - Totally JavaScript
Search PHPit

Use this textbox to search for articles on PHPit. Seperate keywords with a space.

Advertisements

Strings & Regular Expressions


Check for a valid e-mail address

Tuesday, May 2nd, 2006

This function is used to check if an e-mail address is valid. It’s been created by Dave Child, and it’s probably one of the best e-mail validation functions out there (it actually follows all the specifications).

BBCode Format Function

Sunday, October 16th, 2005

This function can be used in your scripts to use BBCode.

Dirify

Wednesday, August 11th, 2004

This popular MovableType function has been ported to PHP, by Adam Kalsey. Now you can create dirified filenames of any string you use this function with.

URL Encode

Wednesday, August 11th, 2004

This function is used to URL encode strings so they can be sent through a URL. This function also makes sure all the characters have been transformed into their entities.

Word Count

Sunday, May 23rd, 2004

This function allows you to quickly calculate how many words a string contains. Very useful for word processor scripts!

End of String

Saturday, May 22nd, 2004

This useful codesnippet can be used to create long strings, without having to escape ’single’ or “double” quotes, but $variables can still be parsed. Very useful for very long texts.