PHP » GoLang |
login |
register |
about
|
GoLang CURLFile::__construct
request it (435)
GoLang replacement for PHP's CURLFile::__construct
[edit | history]
CURLFile::__constructcurl_file_create(PHP 5 >= 5.5.0, PHP 7) CURLFile::__construct -- curl_file_create — Create a CURLFile object DescriptionObject oriented style
public CURLFile::__construct
( string
$filename
[, string $mimetype
[, string $postname
]] )Procedural style
Creates a CURLFile object, used to upload a file with Parameters
Return ValuesReturns a CURLFile object. ExamplesExample #1 CURLFile::__construct() example Object oriented style
<?php Procedural style
<?php The above example will output: array(1) { ["test_file"]=> array(5) { ["name"]=> string(9) "test_name" ["type"]=> string(10) "image/jpeg" ["tmp_name"]=> string(14) "/tmp/phpPC9Kbx" ["error"]=> int(0) ["size"]=> int(46334) } } |
more
Recently updated
more
Most requested
more
Last requests
|