草庐IT

ProceduresCustomer

全部标签

php - 在php中解析包含点的字符串

我将解析以下字符串:$str='ProceduresCustomer.tipi_id=10&ProceduresCustomer.id=1';parse_str($str,$f);我希望$f被解析为:array('ProceduresCustomer.tipi_id'=>'10','ProceduresCustomer.id'=>'1')实际上,parse_str返回array('ProceduresCustomer_tipi_id'=>'10','ProceduresCustomer_id'=>'1')除了我自己写的函数,有人知道是否有一个php函数吗?