public function dump($data, $path = null)
    {
        if ($path !== null) {
            return file_put_contents($path, $data);
        } else {
            echo $data;
        }
    }
public function dump($data, $path = null)
    {
        if ($path !== null) {
            return file_put_contents($path, $data);
        } else {
            echo $data;
        }
    }
public function dump ( $ data , $ path = null ) { if ( $ path !== null ) { return file_put_contents ( $ path , $ data ) ; } else { echo $ data ; } }
Dumps data to a file, or to STDOUT if no filename is given

@param string $data The file content
@param string $path Path of the file to create

@return int|null If path given, the written bytes, null otherwise.
Dumps data to a file or to STDOUT if no filename is given