Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要GeoPointField用 Doctrine2 实现一个。
GeoPointField
看来 Zend 和 Doctrine 本身并不支持它......
是否有验证此类输入的最佳实践?在数据库中我会使用一个简单的字符串字段,对吧?
/^(\-?\d+(?:\.\d+)?),?\s*(\-?\d+(?:\.\d+)?)$/
此正则表达式验证并捕获 GEO 输入: