我的输入字符串: dd.mm.yy
用php,我怎么解压yy?
示例
input = 17.03.19 (dd.mm.yy)
output: 19 (yy)谢谢
发布于 2021-11-01 01:50:40
<?php
// Your input
$input = "17.03.19";
// Explode with that separator
// $temp[0] will contain : 17
// $temp[1] will contain : 03
// $temp[2] will contain : 19
$temp = explode(".",$input);
$output = $temp[2];
echo $output;https://stackoverflow.com/questions/69791915
复制相似问题