<?php
$body = array(
'name' => 'Jane Smith',
'email' => 'some@email.com',
'subject' => 'Checkout this API stuff',
'comment' => 'I just read a great tutorial by this Ben Lobaugh. It taught me amazing things about interacting with APIs in WordPress! You gotta check it out!'
);
var_dump($body);
array(4) {
["name"]=>
string(10) "Jane Smith"
["email"]=>
string(14) "some@email.com"
["subject"]=>
string(23) "Checkout this API stuff"
["comment"]=>
string(143) "I just read a great tutorial by this Ben Lobaugh. It taught me amazing things about interacting with APIs in WordPress! You gotta check it out!"
}
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
array(4) {
["name"]=>
string(10) "Jane Smith"
["email"]=>
string(14) "some@email.com"
["subject"]=>
string(23) "Checkout this API stuff"
["comment"]=>
string(143) "I just read a great tutorial by this Ben Lobaugh. It taught me amazing things about interacting with APIs in WordPress! You gotta check it out!"
}