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

jQuery Scroll page to position of an element/div

When you’re working with a complex page that has a load of areas on-screen, making use of this jQuery Scroll page to position of an element/div function below to scroll to the location will enhance you’re user experience by saving them needing to scroll… take them straight to it!

(more…)

Continue ReadingjQuery Scroll page to position of an element/div

Search Engine Ranking via Title Tags

”How do I get my website page to rank well in search engines for a certain search term?”. While there are many techniques and tactics that can contribute to how your website ranks, one of the most fundamental is through the use of title tags. Title tags let search engines know what the main thrust of each web page is, and which categories or search terms to file the site under. By the way a title tag is what falls between the <TITLE> and </TITLE> tags in your html code for each page.

(more…)

Continue ReadingSearch Engine Ranking via Title Tags