I have a variable in php
Expand|Select|Wrap|Line Numbers
- $test = "This is a string
- It has multiple lines
- there are three total" ;
I want to pass this variable to a javascript function
I have write this in my php file
Expand|Select|Wrap|Line Numbers
- <?php echo "<script language=javascript>convert('$test');</script>"; ?>