uTools-Manuals/docs/php/mysql_fetch_lengths.html
2019-04-08 23:22:26 +08:00

39 lines
2.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>取得结果集中每个输出的长度</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.mysql-fetch-lengths" class="refentry">
<div class="refnamediv">
<h1 class="refname">mysql_fetch_lengths</h1>
<p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">mysql_fetch_lengths</span> &mdash; <span class="dc-title">
取得结果集中每个输出的长度
</span></p>
</div>
<div class="refsect1 unknown-seealsp" id="refsect1-function.mysql-fetch-lengths-unknown-seealsp">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>mysql_fetch_lengths</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$result</code></span>
) : <span class="type">array</span></div>
<p class="para rdfs-comment">
以数组返回上一次用
<span class="function"><a href="mysql_fetch_row.html" class="function">mysql_fetch_row()</a></span>
取得的行中每个字段的长度,如果出错返回 <strong><code>FALSE</code></strong>
</p>
<p class="para">
<span class="function"><strong>mysql_fetch_lengths()</strong></span> 将上一次
<span class="function"><a href="mysql_fetch_row.html" class="function">mysql_fetch_row()</a></span><span class="function"><a href="mysql_fetch_array.html" class="function">mysql_fetch_array()</a></span>
<span class="function"><a href="mysql_fetch_object.html" class="function">mysql_fetch_object()</a></span>
所返回的每个列的长度储存到一个数组中,偏移量从 0 开始。
</p>
<p class="para">
参见 <span class="function"><a href="mysql_fetch_row.html" class="function">mysql_fetch_row()</a></span>
</p>
</div>
</div></div></div></body></html>