axios send data to php code example
Example 1: axios send post to php
var params = new URLSearchParams();
params.append('param1', 'value1');
params.append('param2', 'value2');
axios.post('/foo', params);
Example 2: send axios request to php
<?php
$rp = json_decode(file_get_contents('php://input'), true);