用PHP如何实现startsWith()作者:luke

<?php

function startsWith($haystack, $needle) {
    return $needle === "" || strpos($haystack, $needle) === 0;
}
时间:2018-3-23 分类:练习