I think you want to use the current "exposed" offset as arguments to your functions:
foreach($frequency as $i) { showphp_AlexVortaro (getphp_AlexVortaro($i)); showphp_Smartfm(getphp_Smartfm($i)); }
or
for($i=0; $i<count($frequencies); $i++) { showphp_AlexVortaro(getphp_AlexVortaro($frequencies[$i])); showphp_Smartfm($frequencies[$i]); }
source share