> var beaches = "[
> ['Manly Beach', -33.80010128657071, 151.28747820854187, 2],
> ['Maroubra Beach', -33.950198, 151.259302, 1]
> ]";
>
> as my javascript variable because I'm generating the data in PHP, but
> passing it to Javascript and I can't do a replace(") because of my echo
> being in the double quote.
Bear in mind we have no idea of what your php code looks like that
puts the double quotes there in the first place, or why you can't just
not put them there.
There is more than one way to make php output it the way you want,
without the double quotes.
This isn't really a php forum though.
http://www.trans4mind.com/personal_development/phpTutorial/quotes.htm
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.