json_encode

  • (PHP 5 >= 5.2.0, PECL json >= 1.2.0, PHP 7)
  • Returns the JSON representation of a value