RE: [PHP] Re: asterisk with php
> -----Original Message-----
> From: Jim Giner [mailto:jim.giner@xxxxxxxxxxxxxxxxxx]
> Sent: Wednesday, July 22, 2015 10:20 PM
> To: php-general@xxxxxxxxxxxxx
> Subject: [PHP] Re: asterisk with php
> You could have pointed out the line that is giving you the problem.
> Also - your use of global is poor. It only happens if a certain condition
> happens, otherwise it won't be defined in that function that may be where
> the problem is. More importantly, you don't need a 'global' in the
> code. You need it in the function (at the
> beginning) to let the function know that you want to reference the $pin
> in use in the main-line code.
I tried all the possibilities. "$pin" in the beginning of the function, but
When I do "var_dump($pin)" at the beginning of the function it show the
But when I do "var_dump($pin)" after "$agi=new AGI();" it show nothing.
I think "$agi=new AGI();" it wipe out my "$pin" variable....
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php