![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
28/11/2005, 06:35
|
| | Fecha de Ingreso: noviembre-2005
Mensajes: 139
Antigüedad: 19 años, 3 meses Puntos: 0 | |
funcion sencilla que me da error,alguien sabe porque buenas,
he hecho una funcion pero al compilarla me da un error.
Esta es la funcion:
<html>
<head>
<title>Untitled</title>
</head>
<body>
<?php
function rompelinea($string)
{
for($busqueda=array(), $nextbusq=strtok($linea,","); $nextbusq!==false; $nextbusq=strtok(","))
{
$busqueda[] = $nextbusq
} return $busqueda;
}
?>
</body>
</html>
Y el error es este:
PHP Parse error: parse error, unexpected '}' in E:\Archivos de programa\AppServ\www\_debug_tmp.php on line 17
La linea 17 es la del return.
gracias |