简体   繁体   English

苗条的框架-从网址浮动

[英]Slim framework - Getting float from url

I need to get a float number from url using slim framework. 我需要使用苗条框架从url获取浮点数。 Here's a sample url: 这是一个示例网址:

http://analytics.xxx.com/18539523/1.2/6a15206e23de18994007ea290cce64c9445c438d/

Slim is getting "1.2" as "1". Slim的“ 1.2”为“ 1”。 Is it possible to get the correct float number? 是否可以获取正确的浮点数?

Depending on how the URL is generated you might need to escape the . 根据URL的生成方式,您可能需要对进行转义。 so it becomes %2E 变成%2E

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM