文件名称:php截取字符串的类.zip
文件大小:2KB
文件格式:ZIP
更新时间:2022-07-31 03:37:55
类库下载-php截取字符串的类
<?php class get_c_str { var $str; var $start_str; var $end_str; var $start_pos; var $end_pos; var $c_str_l; var $contents; function get_str($str, $start_str, $end_str) { $this->str = $str; $this->start_str = $start_str; $this->end_str = $end_str; $this->start_pos = strpos($this->str, $this->start_str) strlen($this->start_str); $this->end_pos = strpos($this->str, $this->end_str); $this->c_str_l = $this->end_pos - $this->start_pos; $this->contents = substr($this->str, $this->start_pos, $this->c_str_l); return $this->contents; } }这是一个php截取字符串的类,需要的朋友可以下载使用。
【文件预览】:
php截取字符串的类
----php中文网下载站.url(114B)
----php中文网免费下载站.txt(219B)
----str.php(616B)