I’m taking a beginning PHP class through MLS and I’m learning a lot. But not nearly enough to being to understand these 40 tips for optimizing your php code.

echo is faster than print. There’s a print?

It’s better to use select statements than multi if, else if, statements. Good to know.

A function call with one parameter and an empty function body takes about the same time as doing 7-8 $localvar++ operations. A similar method call is of course about 15 $localvar++ operations. Of course it does.

See if you can use strncasecmp, strpbrk and stripos instead of regex. I’ll see.. wait, I have no idea.

Is this stuff they teach in in intermediate PHP?