Socket
Socket
Sign inDemoInstall

json2php

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json2php

JSON to PHP converter


Version published
Maintainers
1
Created
Source

json2php

Convert JSON to PHP representation

Examples

  • String

    json2php('Hello World!') -> 'Hello World!'

  • Numer

    json2php(123) -> 123

  • Undefined/Null

    json2php(undefined) -> null

  • Array

    json2php([1, 2, 3]) -> array(1, 2, 3)

  • Object

    json2php({a: 1, b: 2, c: 'text'}) -> array('a' => 1, 'b' => 2, 'c' => 'text')

Keywords

FAQs

Package last updated on 14 Dec 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc