I want to convert this linux command console to PHP code, to send data via curl,
curl -X POST -d \'data[][street]=1\' link.....
Thanks!!
Have you tried PHP cURL library? ;)
https://php.net/curl
PHP documentation always gives nice examples.