String.unscrambleId
String.unscrambleId($scrambledId) -> string
Description
Convert a scrambled numeric ID (created by scrambleId) back to its original number.
String.scrambleId(33) //= 'dg97kx8' String.unscrambleId('dg97kx8') //= 33
Automatic Unscrambling
In most cases, you won’t have to do this manually.
You can use the unscramble
validation rule to automatically unscramble IDs that come from Input.
$userId = Input.getRoute('userId', 'unscramble')