I’m no PHP guru, in fact I’d say im starting out and at the very bottom of a ladder. Never the less, I thought it wise to document any simple web development tips I’ve picked up. Most of these will be VERY simple, however theyre all things I’ve learned or needed to know in a real world scenario where im trying to SEO a website without development support.

The first of these is joining strings.

To extend a <title> tag that was stuck displaying the product name I needed to know hot to extend this by joining two text strings together. Luckily the guys at QBN.com were on hand to help and if you’re in a similar situation and need to join text strings here how.

$_title = $title . “what ever text you want to add” ;
or
$_title = “starting text” . ” ending text” ;
Basically you add a period ‘.’ between the two elements you want to join. Remember that in the text string above you would need to add a space after the first quote mark to split the strings if needed and dont forget the training semi colon!
repostus bttn white sml Simple PHP   Joining Text Strings