Posted by andy.z on 04/02/07 16:06
In article <o9g7e4-i1u.ln1@ophelia.g5n.co.uk>,
usenet200703@tobyinkster.co.uk says...
>
> In the general case, there's no way of doing that -- double-quoted strings
> are interpolated and unescaped as soon as they are encountered, and after
> that there's no way of going back to the original string.
>
> However, in this specific case, addcslashes() should do the trick.
>
>
Nice - I missed that one in the documentation - that tiny 'c' was
probably too small for my eyes to see (bad eyesight)
Its a very interesting function anyway.
Thanks Toby I'll give that a go.
Andy.
[Back to original message]
|