echo a variable from a multidimentional array outside a function -
the code below works string value not when try access variable directly. data being accessed table @ http://webrates.truefx.com/rates/connect.html?f=html code strips of tags , put in array $row0 , puts in function. can't out. function simplified question. intend concatenate of variables inside function once find out i'm doing wrong. $row0 = array(); include "scrape/simple_html_dom.php"; $url = "http://webrates.truefx.com/rates/connect.html?f=html"; $html = new simple_html_dom(); $html->load_file($url); foreach ($html->find('tr') $i => $row) { foreach ($row->find('td') $j => $col) { $row0[$i][$j]= strip_tags($col); } } myarray($row0); //table stripped of tags function myarray($arr) { $a = 'hello'; //$arr[0][0]; hello come out not variable $b = $arr[1][0]; $r[0] = $a; $r[1] = $b; //echo $r[1]; if //'s removed 1 can see proper value here not outside function. re...