Don*_*uma 1 html php string variables
好吧,让我们说$ word = abcdefg@hijk.lmn
我可以创建一个新的变量只有"@"的一切
和之后的一切?
(IE $ 1 = abcdefg&$ two = hijk.lmn)
非常感谢
Dag*_*bit 5
用explode.
explode
$word = 'abcdefg@hijk.lmn'; $my_array = explode('@', $word); echo $my_array[0]; // prints "abcdefg" echo $my_array[1]; // prints "hijk.lmn"
http://php.net/manual/en/function.explode.php
归档时间:
15 年 前
查看次数:
143 次
最近记录: