fetching an Integer from DB using Zend Framework returns the value as a string

后端 未结 4 1934
温柔的废话
温柔的废话 2021-02-20 07:42

When I run an sql query using the ZF wrappers, all the numeric values return as strings. What do I need to change so the values will return in the same data type as they are in

4条回答
  •  南方客
    南方客 (楼主)
    2021-02-20 08:23

    It appears as if this has been requested in the past but has not yet been implemented. #ZF-300 was last commented on on 9 Jan 09.

    Maybe you could share why you are wanting to perform the typecasting and we could help you out another way? PHP is pretty lenient when it comes to variable datatypes...

提交回复
热议问题