diff --git a/language/types.xml b/language/types.xml index 424846d9b6..fadfb8756d 100644 --- a/language/types.xml +++ b/language/types.xml @@ -1,5 +1,5 @@ - + Types @@ -104,6 +104,20 @@ rather, it is decided at runtime by PHP depending on the context in which that variable is used. + + + If you want to check out the type and value of a certain expression, use + var_dump. + + + If you simply want a human-readable representation of the type for + debugging, use gettype. To check for a certain type, + do not use gettype, but use the + is_type functions. + + + If you would like to force a variable to be converted to a certain type, you may either