PHP strval() 函数

PHP 教程 · 2019-01-31 21:42:24

strval() 函数用于获取变量的字符串值。

PHP 版本要求: PHP 4, PHP 5, PHP 7

语法

string strval ( mixed $var )

参数说明:

  • $var: 可以是任何标量类型,但不能是数组或对象。

返回值

返回字符串。

实例

实例

<?php $int_str= 123; var_dump($int_str); $str = strval(123); var_dump($str); ?>

输出结果为:

int(123)
string(3) "123"

点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

A Guide to Monte Carlo Simulations in Statistical Physics

A Guide to Monte Carlo Simulations in Statistical Physics

Landau, David P./ Binder, Kurt / Cambridge Univ Pr / 2005-9 / 786.00元

This new and updated edition deals with all aspects of Monte Carlo simulation of complex physical systems encountered in condensed-matter physics, statistical mechanics, and related fields. After brie......一起来看看 《A Guide to Monte Carlo Simulations in Statistical Physics》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

SHA 加密
SHA 加密

SHA 加密工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具