CURLStringFile::__constructCreate a CURLStringFile object Description
public CURLStringFile::__construct(string
$data , string $postname , string $mime = "application/octet-stream")
Creates a CURLStringFile object, used to upload a file with Parameters
ExamplesExample #1 CURLStringFile::__construct example
The above example will output: array(1) { ["test_string"]=> array(5) { ["name"]=> string(8) "test.txt" ["type"]=> string(10) "text/plain" ["tmp_name"]=> string(14) "/tmp/phpTtaoCz" ["error"]=> int(0) ["size"]=> int(20) } } string(20) "test upload contents" See Also
|