General Question

Vincentt's avatar

Any ideas for simple, always useful PHP functions?

Asked by Vincentt (8069points) November 17th, 2007

Hi, I’m looking for a few small PHP functions to write that might come in handy. It wouldn’t really matter if they already exist somewhere, I just need to practise this new technique but can’t think of any useful functions. Thanks in advance.

Observing members: 0 Composing members: 0

4 Answers

jrpowell's avatar

A regular expression to check if an e-mail address is valid. Tons of examples out there but it gets your hands dirty with a few necessary techniques.

Vincentt's avatar

Great idea John, thanks :)

iTony's avatar

there is always the login and logout. making them into function would come handy and easy to use. Sorry I am blank too :S

mlaskt's avatar

This isn’t too useful but it can save a little typing

function isPost() {

if (isPost()) {
/* do form stuff */

Answer this question




to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
Knowledge Networking @ Fluther