Hi,
I have the folllowing code snippet:
$data_from_flash = $_POST[ "xmlStringData" ];
$nodeNames = array();
for( $i = 0; $i < strlen( $nodeNames ); $i++ )
{
fputs( $myLogFile, $nodeNames[$i] );
}
fclose( $myLogFile );
// $nodeNames cannot be accessed form inside this function
function startElementHandler( $parser, $name, $attributes )
{
array_push( $nodeNames, $name );
}
The problem is that inside the 'startElementHandler' function, my array that i want to push() into cannot be accessed, how can i get round this scope issue?
Regards, Bastern :]