I want to output some array data (>30.000 indexes) in php using a JavaScript alert box. So I create the string in a for loop containing all of my data with
$content .= '\\n' . data[$i];
Then I want to output the data using
echo "<script type='text/javascript'>
alert('$content');
</script>";
I'm just wondering what the maximum number of lines is that you can input in a php string or a javascript alert box. I know it won't display 30.000 lines but what is the maximum number?