Echo, Print and the Conditional Operator

11 12 2010

Octeract Petrie polygon ternary Boolean connec...

Image by Cuito Cuanavale via Flickr

Most of the time the PHP built-ins echo and print are interchangeable in terms of outputting values to the browser window(1). But they do have nuances which may come in handy.   Read the rest of this entry »

Advertisements




Shuffling and Random Thoughts

28 10 2010

A riffle shuffle being performed during a game...

A riffle shuffle being performed during a game of poker at a bar near Madison, Wisconsin (Photo credit: Wikipedia)

Sometimes you need to shuffle things when you work with PHP, that is to order a set of values where each appears in a randomized order. Read the rest of this entry »








%d bloggers like this: