Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我要么从我的数据库中获取一位数或两位数,如 52、8、4、99 等。我现在要做的是显示数字,如果数字是两位数,如“5 2” ”。我该怎么做呢?
我相信这会做你想要的:
echo join(' ', str_split($number));