To location
needs(code_samples);
Function Syntax
location to_location(string name )
- id is a location name to convert
- id is a location ID # to convert
Returns the location that matches name or id as specified.
Special
While direct casting via $location[ ] is case-insensitive and able to catch partial matches, this function has added benefit of handling location ID #'s and passing variables as a string parameter.