Link to home
Start Free TrialLog in
Avatar of tjazzvibe
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
Avatar of hielo
hielo
Flag of Wallis and Futuna image

>>can anyone point me to an article on this?
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
ASKER CERTIFIED SOLUTION
Avatar of b0lsc0tt
b0lsc0tt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tjazzvibe
tjazzvibe

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