Skip to content

Instantly share code, notes, and snippets.

@marciojrtorres
Created August 9, 2013 01:26
Show Gist options
  • Save marciojrtorres/6190427 to your computer and use it in GitHub Desktop.
Save marciojrtorres/6190427 to your computer and use it in GitHub Desktop.
Código "do mal"
$colunaDifetente = $_SESSION['janelaBusca'][$_POST['idJanela']]['colunaDiferente'];
if(is_array($colunaDifetente)){
if (is_array($vet)){
foreach ($vet as $k=>$v){
foreach ($v as $k1=>$v1){
foreach ($v1 as $k2=>$v2){
foreach ($colunaDifetente as $k3=>$v3){
if ($vet[$k]['r'][$k2]['c'] == $k3) {
$vet[$k]['r'][$k2]['c'] = $v3;
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment