javascript php array to string conversion





here i want to fill jqgrid with my data so i have made ajax call to retrive data from mysql database . now i want to sent data from php to javascript ajax call but it gives me error like Array to string conversion in line no 25. EDIT 2. I forgot to say that I need this conversion in pure Javascript. In other words, I need to parse the array string into a javascript Object because when a click on a certain button on my page occurs, I need to read the values that are currently inside phpstring. Im scraping a website using php to get some data. The data I get is a valid javascript array.v46, 2015, 24275, 30398, 84424]". I now have this string in php, but how can I convert it to a php array?long) and they are displayed correctly but when I try use them inside the javascript I get "Notice: Array to string conversion" in lines 58 and 83.script>. See the variable named arraystring i have created it in php and then just echo in js to make a js array and then i have looped with the latHaml Handlebars Haskell HTML HTTP Ini iOS Jade Java Javascript jQuery JSON Julia Keyman LaTeX Linux Less LOLCODE Makefile Markdown MATLAB MySQL NASM Node. js NSIS Objective-C Pascal Perl PHP PHP. Email codedump link for Array to string conversion notice in PHP. If yes, call php function updateSQL to update them. Ive written following piece of code in php: echo "

Copyright © 2018.