Skip to content

Instantly share code, notes, and snippets.

@ginsterbusch
Created August 19, 2019 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ginsterbusch/590bf349927685b094bff6e084a86f09 to your computer and use it in GitHub Desktop.
Save ginsterbusch/590bf349927685b094bff6e084a86f09 to your computer and use it in GitHub Desktop.
Komische kryptische Zeichen in Shortcodes
<?php
$x = 'eyJoYWxsbyI6IndlbHQiLCJzb25nLXRpdGVsIjp7Im1laW4iOiJnZWhpcm4iLCJkZWluIjoiZ2VoaXJuIn0sInVybCI6Imh0dHBzJTNBJTJGJTJGdXNhYmlsaXR5LWlkZWFsaXN0Lm5ldCUyRiUyM2tvbnRha3QiLCJlaW5zX3BsdXMiOnRydWV9';
$y = base64_decode( $x );
$z = json_decode( urldecode( $y ), true ); // true ergibt ein array, ohne haben wir reine StdClass-Objektorgie
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment