tjazzvibe
asked on
typecast question
going through a drupal tutorial i found this
(int) $a
it mentioned it was a typecast. i get it, however i'm looking around php.net and google and even drupal to find out more about it and what other typecasts i can use, if there are even others.
i know about all the ctype stuff, but i had never seen this before.
can anyone point me to an article on this?
thanks
tony
(int) $a
it mentioned it was a typecast. i get it, however i'm looking around php.net and google and even drupal to find out more about it and what other typecasts i can use, if there are even others.
i know about all the ctype stuff, but i had never seen this before.
can anyone point me to an article on this?
thanks
tony
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks, that's what i was looking for.
Your welcome! I'm glad I could help. Thanks for the grade, the points and the fun question.
bol
bol
Article? Hmmm. Well the concept is quite simple, so I doubt you will find an article. Basically the general format is:
(dataType) $variable
which just means/says "treat whatever $variable holds as dataType". That's it. Other examples:
(float)$x, (long)$x