
September 8th, 2007, 12:31 PM
|
| Administrator
Join Date: Jun 2007
Posts: 3,709
BRL$: 42,922.70 Thanks: 0
Thanked 14 Times in 10 Posts
Rep Power: 409 | | Quotation Marks inside a declared variable $variable = "Some text goes here, but when there are "quotation marks" in the text, it throws up an error";The variable is declared in a script that I have no editing access to. Does anyone know how to remove the quotes from the variable after it has been passed to the script? Using the variable as stated above, is there a function I could use to do this? Something like: variable = function_name("Some text goes here, but when there are "quotation marks" in the text, it throws up an error");I keep getting the "unexpected t string" error.Please don't tell me I can use str_replace to replace the quotation marks. When they cause the error, they are already declared in the script, and I have no access to input a str_replace at the source (before it's imported with the quotes inside the variable). To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. | |
__________________ █ High Quality To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ Powerful To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. █ Jobs In !!! - Post Jobs, Hire Employees, Create Blogs and
Earn Money. | | | |