PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
floor(). It returns a float back from the call so your types are the same. You are not changing the core data (as with type casting) and explode() requires the initial call (with overhead) plus reading an var into the reurn.
floor is better because that's the purpose of the function! Typecasting and splitting into an array are just workarounds to do what floor already does.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
the purpose of typecasting is to cast to a type, not to floor
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
amir wrote:Thanks for this healthy discussion but if you all dont mind, please also see my this post. viewtopic.php?t=57419
Please refrain from bumping other threads within a thread.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:4. All users of any level are restricted to bumping (as defined here) any given thread within twenty-four (24) hours of its last post. Non-trivial posts are not considered bumping. A bump post found in violation will be deleted, and you may or may not recieve a warning. Persons bumping excessively be considered as spammers and dealt with accordingly.