Php 将字符串拆分为ex:“quot;测试12.45“;进入测试和12.45?

Php 将字符串拆分为ex:“quot;测试12.45“;进入测试和12.45?,php,string,split,Php,String,Split,可能重复: 如何使用php拆分字符串,例如:“test 12.45”作为test和12.45 您尝试过该功能吗?在发布此问题之前,您是否做过任何研究? $text = "test 12.45"; $words = explode(" ",$text); echo $words[0]; echo $words[1];

可能重复:

如何使用php拆分字符串,例如:“test 12.45”作为test和12.45

您尝试过该功能吗?

在发布此问题之前,您是否做过任何研究?
$text = "test 12.45";

$words = explode(" ",$text);

echo $words[0]; 
echo $words[1];