Okay, the book I'm using to help teach me PHP gives me 2 ways to set the types of variables manually.
settype($variable, "type"); or
$variable = (type) $variable;
what is the reasoning for the two different ways? From what I'm understanding they do the same thing, does one have an advantage over the other? Does one allow for easier changing/modification in more complex programs?
Or is it just two ways to change variable types leaving it up to the programmer to choose the easiest way for him/her?
Thanks,
Ryan