Re: Redefine Funtion
| From: | Szopen Xiao | Date: | Tue, 01 Dec 2015 06:11:55 +0000 |
| Subject: | Re: Redefine Funtion | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-325269@lists.php.net to get a copy of this message | ||
php un-support redefine function, you can use anonymous function implement
redefine
2015-12-01 9:52 GMT+08:00 Ethan Rosenberg <erosenberg@hygeiabiomedical.com>:
> Dear List -
>
> Thanks for all your help with my previous question.
>
> This works -
>
> $output = shell_exec('php P7a.php');
> echo $output;
>
> Now another question -
>
> function SetParameters()
> {
> etc......
> }
>
> switch ($_POST['next_step'])
> {
>
> case 'step1':
> {
>
> SetParameters();
> Choice();
> break;
>
> }
> } //end switch
> // yes, there are more cases, and I have checked for mismatched
> parenthesis and have not found //any.
>
> Fatal error: Cannot redeclare SetParameters() (previously declared in
> /var/www/P7a.php:109) in /var/www/P7a.php on line 180
>
> ???
>
> TIA
>
> Ethan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>