Jump to content

php string with brackets and semicolons in it. really.


yahn

Recommended Posts

I'm using ajax and I want to send a javascript function as text so I don't have to load every function I need in the aplication from the start.  But I don't know how to actually put brackets and semicolons in a string.  So if I wanted turn a simple [code=php:0]function foo() { alert('bar'); }[/code] into a string so I could send it as text how would I do that?  Thank you for your time.

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.