Skip to content
This repository was archived by the owner on Jul 6, 2020. It is now read-only.
This repository was archived by the owner on Jul 6, 2020. It is now read-only.

Read json input #13

Description

@ntvsx193

Hi!
How about features for working php with AngularJS?
AngularJS sends a request in json format. In php it is processed through php://input

function readInput(){
   $data = file_get_contents("php://input");
   $objData = json_decode($data, true);
   if (!empty($sData)) foreach($sData as $key => $value)
      $_POST[$key] = $value;
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions