substr(string,start,length): This function extracts length characters from the start position of the string string. If start is a negative number, it starts from the end of the string. If the omitted parameter length exists but is a negative number, it means that the length character from the bottom is obtained.
$str = "abc|bck|fhq|nui";
print(explode("|",$srt)); //Output array([0]=>abc,[1]=>bck,[2]=>fhq,[3]=> ;nui)
?>
http://www.bkjia.com/PHPjc/445384.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445384.htmlTechArticlesubstr(string,start,length): This function takes out the string starting from the start position of the string string length characters. If start is a negative number, it starts from the end of the string. If it can be omitted...
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn