Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/06/2012, 12:40
aguiacir
 
Fecha de Ingreso: junio-2012
Ubicación: Mexico DF
Mensajes: 16
Antigüedad: 11 años, 11 meses
Puntos: 1
Pregunta Error fatal con funcion PHP.

Que tal tengo un problema.
Menciona que tengo un error fatal, por no llamar la variable. cleanchain. Pero segun yo si lo hago. en lo demas esta bn. Solo es ese detalle.

function get_title(){
$chainTitle=$this->title;
$changedChainT=cleanChain($chainTitle);
return iconv('UTF-8','ISO-8859-1',$changedChainT);
}

function get_url (){
return $this->url;
}

function get_description(){
return $this->description;
}

function cleanChain($chainC){
$character="A[";
$nwchain= strstr ($chainC,$character);
#echo $cadena;
#echo $this->title;
for($i=0;$i<strlen($nwchain);$i++){
if(($nwchain[$i]=="]") or ($nwchain[$i]==">") or ($nwchain[$i]=='A[')){
$nwchain[$i]="";
}
}
return $nwchain;
}
}

Muchas gracias