PHP 中的 printf函数

首页 / PHP入门教程 / PHP 中的 printf函数

printf - 语法

int printf ( string $format [, mixed $args [, mixed $... ]] )

它返回输出一个格式化的字符串

Sr.No 参数 & 描述
1

format

它包含有关字符串格式的信息

链接:https://www.learnfk.comhttps://www.learnfk.com/php/php-function-printf.html

来源:LearnFk无涯教程网

printf - 返回值

它返回输出字符串的长度。

printf - 示例

<?php
   printf("Tutorials point simply easy learning");
?>

这将产生以下输出-

Tutorials point simply easy learning

祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)

技术教程推荐

技术与商业案例解读 -〔徐飞〕

从0开始学微服务 -〔胡忠想〕

软件工程之美 -〔宝玉〕

Service Mesh实战 -〔马若飞〕

如何落地业务建模 -〔徐昊〕

玩转Vue 3全家桶 -〔大圣〕

郭东白的架构课 -〔郭东白〕

React Native 新架构实战课 -〔蒋宏伟〕

现代C++20实战高手课 -〔卢誉声〕

好记忆不如烂笔头。留下您的足迹吧 :)