.oO(crash)
>I'm creating a function that already has a variable
defined. Will I be
>redefining this variable when I define my function and
include it?
>
>Example:
>
>$varDate = Recordset
>
>function priivaDate ($varDate) {
> $varDate +1;
> return $varDate;}
>
Why not simply test it or look it up in the manual?
The second $varDate is only visible within the context of the
function.
It won't affect the global variable, unless that one is
imported into
the function using the 'global' keyword. From the manual:
| [...] However, within user-defined functions a local
function scope is
| introduced. Any variable used inside a function is by
default limited
| to the local function scope.
Micha