Skip to content

Instantly share code, notes, and snippets.

@theking2
Last active June 17, 2024 16:50
Show Gist options
  • Save theking2/27b3c2e2e0e8fd4a72502d49c1f9e202 to your computer and use it in GitHub Desktop.
Save theking2/27b3c2e2e0e8fd4a72502d49c1f9e202 to your computer and use it in GitHub Desktop.
read json body in php
<?php
$request = json_decode( file_get_contents( 'php://input' ) );
@theking2
Copy link
Author

how to sanitize this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment