http_negotiate_ctypeとは? わかりやすく解説

Weblio 辞書 > コンピュータ > PHP関数リファレンス > http_negotiate_ctypeの意味・解説 

http_negotiate_ctype

(No version information available, might be only in CVS)
http_negotiate_ctype — クライアントが希望している content type を選択する

説明

string http_negotiate_ctype ( [array supported [, array &result]] )
この関数は、クライアントが希望している content type を Accept HTTP ヘッダに基づいて選択します。 qualifier も理解し、qualifier の指定されていない content type が最優先されます。

パラメータ

supported
サポートされる content type を値にもつ配列。
result
選択した結果がこの配列に含まれます。

返り値

選択された content type、あるいは一致するものがなかった場合はデフォルトの content type (配列の最初のエントリ) を返します。

例 822. http_negotiate_ctype() の使用例
<?php
$ctypes = array('application/xhtml+xml', 'text/html');
http_send_content_type(http_negotiate_content_type($ctypes));
?>





英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「http_negotiate_ctype」の関連用語

http_negotiate_ctypeのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



http_negotiate_ctypeのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
PHP Documentation GroupPHP Documentation Group
Copyright © 1997 - 2024 by the PHP Documentation Group.

©2024 GRAS Group, Inc.RSS