Sunday, October 22, 2006

PHP Programming Tips #1 - Regular Expressions

preg_match: ( int preg_match ( string pattern, string subject [, array &matches [, int flags [, int offset]]] ) )

The test returned positive. You are indeed the father. Change your name and move to a different state immediately.


preg_match_all: (int preg_match_all ( string pattern, string subject, array &matches [, int flags [, int offset]] ) )

You have run out of states, and will be lynched by a mob of furious, pregnant women.

2 comments:

Lorraine said...

I thought this post was funny. If I were a techie person would I find it even funnier?

Ben said...

I do not know. You should ask a techie person.