A look at the Toshiba Portégé R600 with 512GB SSD
July 2, 2009 – | No Comment

There aren’t many better ways of gaining recognition for all the effort you have put in to be greener than from an organisation like Greenpeace. The Toshiba Portégé R600 won its category in the Greenpeace …

Read the full story »
Downloads

Things to download free, from posters and shortcut guides to white-papers and checklists

How To & Tutorials

These handy problem solving tips and advice should save you some time

Industry News

News and commentary from news in the technology industry

Software

Explore recommended software applications from around the Internet

Technology Terms

We regularly take a technology related term and try to make sense of it in the real world.

Home » Blogging

PHP: Add Slashes to text

Submitted by jasonslater on June 3, 2008 – No Comment

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.

Technorati Tags: sl8r,code zone,code
Share and Enjoy:
  • Digg
  • del.icio.us
  • E-mail this story to a friend!
  • StumbleUpon
  • Technorati
  • TwitThis

Comments are closed.