Wednesday, May 16, 2007

This is *so* insignificant...

Today I discovered that in PHP you can include and array value in a string without concatenation of any kind. You just have to use brackets. So instead of:
echo “Blablabla ” . $array[‘key’] . “ blablabla”;

You have:
echo “Blablabla {$array[‘key’]} blabla”;

You'd think I would have known that already. It will definitely make MySQL queries simpler, but concatenating just feels so much *cleaner* somehow.
I also learned how to properly sort multidimensional arrays, which is convenient, as I tend to be an array fiend.

Ahem. Anyway...

3 comments:

Anonymous said...

umm... good... good for you... *pat on the head*

Angela said...

LOL!

GoodyMom1 said...

and after two months, this is all you have for us?

*hugs*