Print_r function is usually to output the array result, but I want to hide the result it should be seen on the browser is there a certain way to hide it?
The reason why I want to hide it is, because I just realized that to output and sort a big array outside a loop is impossible to do only when I output it with print_r function in the loop and then to sort it and order in a table outside the loop.
Here is a sample
$arr = array('jow', 'jack');//Big array,
$arr1 = array();
foreach($arr as $val){
$arr1[] = $val;
print_r($arr1); // hide it here
}
//Order it and sort it outside the loop.
Check your code in your browser through Right Click.