Copyright © tutorialspoint.com
Syntax
Definition and UsageReturns a true value if EXPR, or $_ if EXPR is not supplied, is a reference. The actual value returned also defines the type of entity the reference refers to. The built-in types are:
If a variable was blessed with the bless() function, then the new data type will be returned. The new data type will normally be a class name. Return Value
ExampleTry out following example:
It will produce following results:
|
Copyright © tutorialspoint.com