public function move($destination)
    {
        if (copy($this->filename, $destination)) {
            unlink($this->filename);

            $this->filename = $destination;

            return $destination;
        }
        else {
            return false;
        }
    }
public function move($destination)
    {
        if (copy($this->filename, $destination)) {
            unlink($this->filename);

            $this->filename = $destination;

            return $destination;
        }
        else {
            return false;
        }
    }
public function move ( $ destination ) { if ( copy ( $ this -> filename , $ destination ) ) { unlink ( $ this -> filename ) ; $ this -> filename = $ destination ; return $ destination ; } else { return false ; } }
Moves the source to the destination.
Both parameter have to be a full paths.On success the return value will be the destination path.
Otherwise it will be boolean false.

@param string $source
Path to source file
@param string $destination
Path to destination file

@return string boolean
Moves the source to the destination . Both parameter have to be a full paths . On success the return value will be the destination path . Otherwise it will be boolean false .