Jump to content

How Do I Add Slashes To This?


refiking

Recommended Posts

When you are working with strings, if you want to use quotations you have to "escape" them first.

 

Example:

<?php $string = "My name is \"john\"; ?>

 

Since we use backslashes to escape, you have to escape your backslashes as well :)  (that's what the post above me is doing)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.