Thread: Forced Download
View Single Post
Old 12-26-2007, 06:02 PM   #7 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

php Code:
function _Download($file, $file)
{
    echo 'File 1: ' . $file . "\r\n";
    echo 'File 2: ' . $file;
}

echo _Download('Test1', 'Test2');

Result:

Quote:
File 1: Test2
File 2: Test2
I think that's what sjaq is trying to point out. Both $file variables, because they're named the same, will have the result of the last argument set to $file. Which in my case was Test2.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote