PHP: Add Slashes to text
It is sometimes necessary to maintain the special characters in text, such as the apostrophe, speech marks, null character and backslash as these can be mis-interpreted by systems such as SQL if not modified appropriately. The generally accepted method of achieving this is to use the addslashes command which prefixes the special characters with the backslash symbol.
$inputData = "The is a quote '"; $Description = addslashes($inputData); echo "Revised Text: " . $Description;
A useful introduction to SEO can be found at:
SEO: A simple introduction (part 1).
This article is bought to you by: SL8R Codezone.