![]() |
StrVal($X) VS (String)$X
Hi,
What is dif. between StrVal($X) VS (String)$X? Regards. |
StrVal returns the string value of a variable. (string) is a type cast (or type juggle)
PHP: Type Juggling - Manual Its all in the manual |
Thanks SktchMedia, resolved ;).
|
no probs m8
|
Why would you like to cast a datatype in PHP?
|
Also, using an explicit cast is faster than calling a function.
Just to have some fun, Jim. Why do you think? Because sometimes it's necessary. |
Thanks to all. Resolved ;).
|
Quote:
P.S. It's a rhetorical question folks. |
| All times are GMT. The time now is 06:47 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0