Re: Parse error: parse error, unexpected '='
| From: | Craig | Date: | Tue, 20 Apr 2004 08:42:15 +0000 |
| Subject: | Re: Parse error: parse error, unexpected '=' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183947@lists.php.net to get a copy of this message | ||
<?php
$args = array("a","b","b");
$keys = array("0","1","2");
function array_key_remove(&$args,$keys,$replacement=NULL)
{
echo "Foo!";
}
?>
"Lasse Motroen" <d1132124@mail.connect.usq.edu.au> wrote in message
news:4084DE5B.9040401@mail.connect.usq.edu.au...
> I have received some code and am trying to run it. However, I get the
> following error:
>
> *Parse error*: parse error, unexpected '=', expecting ')'
>
> It happens on this line when &$args=array() is reached:
>
> function array_key_remove(&$args=array(), $keys=array(),$replacement=NULL)
>
> I have php-4.2.2-17 and Apache 2.0.40 installed, and am runnig RedHat 9.
> What's wrong, please help.
>
> Regards,
> not-really-too-familiar-with-PHP