PHP Shorthand If Notation or the Ternary Operator

Why should I care about PHP Shorthand If Notation or the Ternary Operator

Programming would be a bit useless without being able to evaluate conditions using if/end and switch statements. If/Else statements is obviously a great tool, but they aren’t optimal (or necessary) in all situations. And so I introduce you to … PHP Shorthand If Notation or the Ternary Operator.

Ternary operator takes the form “(condition) ? (true return value) : (false return value)” to shorten your if/else structures.
(more…)

Continue ReadingPHP Shorthand If Notation or the Ternary Operator

Hawaiian Cruise (and visit to Los Angeles) on the Golden Princess

Our Hawaiian Cruise (and visit to Los Angeles) on board the Golden Princess Cruise November-December 2011.

During this trip we visited the Hawaiian Islands and spent a few nights in Los Angeles on the way back.

OK, it’s taken me over a year to finish writing this up – keep not finding time to do it! I will add some photos in the next few days.

(more…)

Continue ReadingHawaiian Cruise (and visit to Los Angeles) on the Golden Princess