0791280266601 [1] => "/>  0791280266601 [1] => ">
Home > Backend Development > PHP Tutorial > PHP 函数拆分解决思路

PHP 函数拆分解决思路

WBOY
Release: 2016-06-13 11:43:28
Original
820 people have browsed it

PHP 函数拆分
 $str = "0791280266601-5011";
 print_r (explode("-",$str));

 显示效果:Array ( [0] => 0791280266601 [1] => 5011 ) ;


=========================================
第一我要【0】的怎么拿到?
第二【1】怎么拿到? 现在是拆分开了,但是不知道怎么拿到?
大虾 求指点

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template