I have some values to save into postmeta and usermeta table. Before save, I already done this: $value = intval($value) . I think this is enough. But I see some plugins still use filters on those numbers. I want to make sure that I can do with intval and without safety filter.
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
|
||||
|
|
|
A simple example:
will never return this value, because even 64 bit system cannot handle such a large number. You get But if you use:
So, it depends on the values you expect. |
|||
|
