mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 22:06:57 +08:00
34 lines
2.0 KiB
HTML
34 lines
2.0 KiB
HTML
<!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.strval" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">strval</h1>
|
|
<p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">strval</span> — <span class="dc-title">获取变量的字符串值</span></p>
|
|
|
|
</div>
|
|
<div class="refsect1 unknown-seealsp" id="refsect1-function.strval-unknown-seealsp">
|
|
<h3 class="title">描述</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>strval</strong></span>
|
|
( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$var</code></span>
|
|
) : <span class="type">string</span></div>
|
|
|
|
<p class="simpara">
|
|
返回 <code class="parameter">var</code> 的 <span class="type"><a href="language.types.string.html" class="type string">string</a></span> 值。
|
|
参见 <span class="type"><a href="language.types.string.html" class="type string">string</a></span> 文档获取更多关于字符串转换的信息。
|
|
</p>
|
|
<p class="simpara">
|
|
<code class="parameter">var</code> 可以是任何标量类型。不能将
|
|
<span class="function"><strong>strval()</strong></span> 用于数组或对象。
|
|
</p>
|
|
<p class="simpara">
|
|
参见 <span class="function"><a href="floatval.html" class="function">floatval()</a></span>、<span class="function"><a href="intval.html" class="function">intval()</a></span>、<span class="function"><a href="settype.html" class="function">settype()</a></span> 和<a href="language.types.type_juggling.html" class="link">类型戏法</a>。
|
|
</p>
|
|
</div>
|
|
|
|
</div></div></div></body></html> |