Tema: foreach
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/11/2008, 08:35
Javi611
 
Fecha de Ingreso: octubre-2008
Mensajes: 34
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: foreach

Me aparece esto:
Array
(
[TABINDEX] => 1
[LINK] => 1
[IMAGE_SRC] => 1
[IMAGE_ALT] => 1
[IMAGE_TITLE] => 1
[IMAGE_ID] => 1
)



Cita:
Iniciado por Casuis Ver Mensaje
Antes del foreach
Código PHP:

foreach ($this->blockvariables[$block] as $allowedvar => $v) {

if (isset(
$this->variableCache[$allowedvar])) {
$regs[] = $this->openingDelimiter .
$allowedvar $this->closingDelimiter;
$values[] = $this->variableCache[$allowedvar];
unset(
$this->variableCache[$allowedvar]);
$empty false;

pon un var_dump o un print_r y pegalo a ver que te sale por pantalla, pon esto:

Código PHP:
echo "<pre>";
print_r($this->blockvariables[$block]);
echo 
"</pre>"; exit;