| | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
CURLFile::__constructcurl_file_create(PHP 5 >= 5.5.0, PHP 7) CURLFile::__construct -- curl_file_create — CURLFile オブジェクトを作る 説明オブジェクト指向型
public CURLFile::__construct
( string
$filename
[, string $mimetype
[, string $postname
]] )手続き型
CURLFile オブジェクトを作ります。これは、 パラメータ
返り値CURLFile オブジェクトを返します。 例例1 CURLFile::__construct() の例 オブジェクト指向型
<?php手続き型
<?php上の例の出力は以下となります。
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)
}
}
|
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「CURLFile::__construct - CURLFile オブジェクトを作る」をGoogle検索
|