I'm assigning a variable a value from an associative array.
    $variable = $array["key"]["value"];

Then passing the $variable to a function.
    SomeFunction($variable)

The variable exists (can be printed) until a built-in function (within the
original function) is called.
    echo "$variable"; //prints out fine
    $variable2 = ereg_replace(" ", "_", "$variable");
    echo "$variable"; //prints out NOTHING...

Why is this and how can I get around it?

Thanks,
Spunk



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to