【发布时间】:2019-05-18 19:06:27
【问题描述】:
如何从函数中获取第一个数字?我需要检查一下有多少个数字?
$numbers = "1, 2, 3";
所以我的输出需要像1 is the first number, 3 numbers
【问题讨论】:
-
你没有任何功能。你有一个字符串。如果您有一个字符串,请在其上使用explode 来获取数字。小费阅读 PHP 文档 => php.net/manual/en/function.explode.php
标签: php